Ejemplo n.º 1
0
Archivo: wlan.c Proyecto: ianjuch/ee149
//*****************************************************************************
//
//!  wlan_smart_config_start
//!
//!  @param    algoEncryptedFlag indicates whether the information is encrypted
//!
//!  @return   On success, zero is returned. On error, -1 is returned
//!
//!  @brief   Start to acquire device profile. The device acquire its own
//!           profile, if profile message is found. The acquired AP information
//!           is stored in CC3000 EEPROM only in case AES128 encryption is used.
//!           In case AES128 encryption is not used, a profile is created by
//!           CC3000 internally.
//!
//!  @Note    An asynchronous event - Smart Config Done will be generated as soon
//!           as the process finishes successfully.
//!
//!  @sa      wlan_smart_config_set_prefix , wlan_smart_config_stop
//
//*****************************************************************************
long wlan_smart_config_start(unsigned long algoEncryptedFlag)
{
    long ret;

    OS_mutex_lock(g_main_mutex, &mtx_key);
    ret = c_wlan_smart_config_start(algoEncryptedFlag);
    OS_mutex_unlock(g_main_mutex, mtx_key);

    return(ret);
}
Ejemplo n.º 2
0
/**
 * \brief Start acquire profile
 *
 * Start to acquire device profile. The device acquire its own
 * profile, if profile message is found. The acquired AP information is
 * stored in CC3000 EEPROM only in case AES128 encryption is used.
 * In case AES128 encryption is not used, a profile is created by CC3000 internally.\n
 *
 * \param[in] algoEncryptedFlag indicates whether the information is encrypted
 *
 * \return  On success, zero is returned. On error, -1 is
 *            returned
 * \sa   wlan_smart_config_set_prefix  wlan_smart_config_stop
 * \note    An asynchnous event - Smart Config Done will be generated as soon as the process finishes successfully
 * \warning
 */
long wlan_smart_config_start(unsigned long algoEncryptedFlag)
{
    long ret;
    ret = c_wlan_smart_config_start(algoEncryptedFlag);
    return(ret);
}