//***************************************************************************** // //! wlan_smart_config_set_prefix //! //! @param newPrefix 3 bytes identify the SSID prefix for the Smart Config. //! //! @return On success, zero is returned. On error, -1 is returned //! //! @brief Configure station ssid prefix. The prefix is used internally //! in CC3000. It should always be TTT. //! //! @Note The prefix is stored in CC3000 NVMEM //! //! @sa wlan_smart_config_start , wlan_smart_config_stop // //***************************************************************************** long wlan_smart_config_set_prefix(char* cNewPrefix) { long ret; OS_mutex_lock(g_main_mutex, &mtx_key); ret = c_wlan_smart_config_set_prefix(cNewPrefix); OS_mutex_unlock(g_main_mutex, mtx_key); return(ret); }
/** * \brief config set prefix * * Configure station ssid prefix. * The prefix is used internally in CC3000. * It should always be TTT. * * \param[in] newPrefix 3 bytes identify the SSID prefix for * the Simple Config. * * \return On success, zero is returned. On error, -1 is * returned * * \sa wlan_smart_config_start wlan_smart_config_stop * \note The prefix is stored in CC3000 NVMEM.\n * \warning */ long wlan_smart_config_set_prefix(char* cNewPrefix) { long ret; ret = c_wlan_smart_config_set_prefix(cNewPrefix); return(ret); }