le_wifiClient_interface.h
Go to the documentation of this file.
160 * So, the SSID of this Access Point must be known in advance. Then, use the following function to164 * Finally and when the Access Point parameters have been configured, use the following function to208 //--------------------------------------------------------------------------------------------------212 //--------------------------------------------------------------------------------------------------215 //--------------------------------------------------------------------------------------------------218 * Connect the current client thread to the service providing this API. Block until the service is221 * For each thread that wants to use this API, either ConnectService or TryConnectService must be222 * called before any other functions in this API. Normally, ConnectService is automatically called227 //--------------------------------------------------------------------------------------------------233 //--------------------------------------------------------------------------------------------------236 * Try to connect the current client thread to the service providing this API. Return with an error239 * For each thread that wants to use this API, either ConnectService or TryConnectService must be240 * called before any other functions in this API. Normally, ConnectService is automatically called249 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).252 //--------------------------------------------------------------------------------------------------258 //--------------------------------------------------------------------------------------------------262 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants265 //--------------------------------------------------------------------------------------------------272 //--------------------------------------------------------------------------------------------------278 * longer a connection to the service, and the functions in this API can't be used. For details, see283 //--------------------------------------------------------------------------------------------------290 //--------------------------------------------------------------------------------------------------294 //--------------------------------------------------------------------------------------------------298 //--------------------------------------------------------------------------------------------------302 //--------------------------------------------------------------------------------------------------315 //--------------------------------------------------------------------------------------------------319 //--------------------------------------------------------------------------------------------------338 //--------------------------------------------------------------------------------------------------342 //--------------------------------------------------------------------------------------------------346 //--------------------------------------------------------------------------------------------------350 //--------------------------------------------------------------------------------------------------352 (359 //--------------------------------------------------------------------------------------------------366 //--------------------------------------------------------------------------------------------------375 //--------------------------------------------------------------------------------------------------379 //--------------------------------------------------------------------------------------------------386 //--------------------------------------------------------------------------------------------------396 //--------------------------------------------------------------------------------------------------402 //--------------------------------------------------------------------------------------------------412 //--------------------------------------------------------------------------------------------------418 //--------------------------------------------------------------------------------------------------427 //--------------------------------------------------------------------------------------------------433 //--------------------------------------------------------------------------------------------------442 //--------------------------------------------------------------------------------------------------448 //--------------------------------------------------------------------------------------------------458 //--------------------------------------------------------------------------------------------------464 //--------------------------------------------------------------------------------------------------472 //--------------------------------------------------------------------------------------------------479 //--------------------------------------------------------------------------------------------------488 //--------------------------------------------------------------------------------------------------499 //--------------------------------------------------------------------------------------------------509 //--------------------------------------------------------------------------------------------------520 //--------------------------------------------------------------------------------------------------532 //--------------------------------------------------------------------------------------------------541 //--------------------------------------------------------------------------------------------------552 //--------------------------------------------------------------------------------------------------561 //--------------------------------------------------------------------------------------------------571 //--------------------------------------------------------------------------------------------------580 //--------------------------------------------------------------------------------------------------591 //--------------------------------------------------------------------------------------------------602 //--------------------------------------------------------------------------------------------------610 //--------------------------------------------------------------------------------------------------619 //--------------------------------------------------------------------------------------------------621 * This function specifies whether the target Access Point is hiding its presence from clients or624 * @note By default, this attribute is not set which means that the client is unable to connect to633 //--------------------------------------------------------------------------------------------------642 //--------------------------------------------------------------------------------------------------652 //--------------------------------------------------------------------------------------------------661 //--------------------------------------------------------------------------------------------------671 //--------------------------------------------------------------------------------------------------678 //--------------------------------------------------------------------------------------------------687 * @note For PSK credentials see le_wifiClient_SetPassphrase() or le_wifiClient_SetPreSharedKey() .690 //--------------------------------------------------------------------------------------------------697 //--------------------------------------------------------------------------------------------------705 //--------------------------------------------------------------------------------------------------void le_wifiClient_ConnectService(void)le_wifiClient_SecurityProtocol_tDefinition: le_wifiClient_interface.h:320void(* le_wifiClient_DisconnectHandler_t)(void *)Definition: le_wifiClient_interface.h:213void le_wifiClient_RemoveNewEventHandler(le_wifiClient_NewEventHandlerRef_t handlerRef)le_result_t le_wifiClient_Start(void)void le_wifiClient_DisconnectService(void)le_result_t le_wifiClient_TryConnectService(void)le_result_t le_wifiClient_SetPassphrase(le_wifiClient_AccessPointRef_t accessPointRef, const char *LE_NONNULL PassPhrase)struct le_wifiClient_NewEventHandler * le_wifiClient_NewEventHandlerRef_tDefinition: le_wifiClient_interface.h:343le_result_t le_wifiClient_Disconnect(void)Using WPA Enterprise.Definition: le_wifiClient_interface.h:330struct le_wifiClient_AccessPoint * le_wifiClient_AccessPointRef_tDefinition: le_wifiClient_interface.h:295le_result_t le_wifiClient_Delete(le_wifiClient_AccessPointRef_t accessPointRef)le_result_t le_wifiClient_SetWepKey(le_wifiClient_AccessPointRef_t accessPointRef, const char *LE_NONNULL wepKey)le_result_t le_wifiClient_SetHiddenNetworkAttribute(le_wifiClient_AccessPointRef_t accessPointRef, bool hidden)void le_wifiClient_SetServerDisconnectHandler(le_wifiClient_DisconnectHandler_t disconnectHandler, void *contextPtr)le_wifiClient_AccessPointRef_t le_wifiClient_GetFirstAccessPoint(void)le_wifiClient_NewEventHandlerRef_t le_wifiClient_AddNewEventHandler(le_wifiClient_NewEventHandlerFunc_t handlerPtr, void *contextPtr)le_result_t le_wifiClient_GetBssid(le_wifiClient_AccessPointRef_t accessPointRef, char *bssid, size_t bssidSize)Using WPA2 Enterprise.Definition: le_wifiClient_interface.h:332le_wifiClient_AccessPointRef_t le_wifiClient_GetNextAccessPoint(void)le_result_t le_wifiClient_Connect(le_wifiClient_AccessPointRef_t accessPointRef)le_result_t le_wifiClient_GetSsid(le_wifiClient_AccessPointRef_t accessPointRef, uint8_t *ssidPtr, size_t *ssidSizePtr)le_result_t le_wifiClient_SetSecurityProtocol(le_wifiClient_AccessPointRef_t accessPointRef, le_wifiClient_SecurityProtocol_t securityProtocol)le_wifiClient_AccessPointRef_t le_wifiClient_Create(const uint8_t *SsidPtr, size_t SsidSize)le_result_t le_wifiClient_SetPreSharedKey(le_wifiClient_AccessPointRef_t accessPointRef, const char *LE_NONNULL PreSharedKey)le_result_t le_wifiClient_Scan(void)void(* le_wifiClient_NewEventHandlerFunc_t)(le_wifiClient_Event_t event, void *contextPtr)Definition: le_wifiClient_interface.h:352le_result_t le_wifiClient_Stop(void)le_result_t le_wifiClient_SetUserCredentials(le_wifiClient_AccessPointRef_t accessPointRef, const char *LE_NONNULL userName, const char *LE_NONNULL password)int16_t le_wifiClient_GetSignalStrength(le_wifiClient_AccessPointRef_t accessPointRef)WiFi Scan result for available Access Points available.Definition: le_wifiClient_interface.h:309