le_wifiClient_interface.h
Go to the documentation of this file.
204 //--------------------------------------------------------------------------------------------------208 //--------------------------------------------------------------------------------------------------211 //--------------------------------------------------------------------------------------------------214 * Connect the current client thread to the service providing this API. Block until the service is217 * For each thread that wants to use this API, either ConnectService or TryConnectService must be218 * called before any other functions in this API. Normally, ConnectService is automatically called223 //--------------------------------------------------------------------------------------------------229 //--------------------------------------------------------------------------------------------------232 * Try to connect the current client thread to the service providing this API. Return with an error235 * For each thread that wants to use this API, either ConnectService or TryConnectService must be236 * called before any other functions in this API. Normally, ConnectService is automatically called245 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).248 //--------------------------------------------------------------------------------------------------254 //--------------------------------------------------------------------------------------------------258 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants261 //--------------------------------------------------------------------------------------------------268 //--------------------------------------------------------------------------------------------------274 * longer a connection to the service, and the functions in this API can't be used. For details, see279 //--------------------------------------------------------------------------------------------------286 //--------------------------------------------------------------------------------------------------290 //--------------------------------------------------------------------------------------------------294 //--------------------------------------------------------------------------------------------------298 //--------------------------------------------------------------------------------------------------311 //--------------------------------------------------------------------------------------------------315 //--------------------------------------------------------------------------------------------------334 //--------------------------------------------------------------------------------------------------338 //--------------------------------------------------------------------------------------------------342 //--------------------------------------------------------------------------------------------------346 //--------------------------------------------------------------------------------------------------348 (355 //--------------------------------------------------------------------------------------------------362 //--------------------------------------------------------------------------------------------------371 //--------------------------------------------------------------------------------------------------375 //--------------------------------------------------------------------------------------------------382 //--------------------------------------------------------------------------------------------------392 //--------------------------------------------------------------------------------------------------398 //--------------------------------------------------------------------------------------------------408 //--------------------------------------------------------------------------------------------------414 //--------------------------------------------------------------------------------------------------423 //--------------------------------------------------------------------------------------------------429 //--------------------------------------------------------------------------------------------------438 //--------------------------------------------------------------------------------------------------444 //--------------------------------------------------------------------------------------------------454 //--------------------------------------------------------------------------------------------------460 //--------------------------------------------------------------------------------------------------468 //--------------------------------------------------------------------------------------------------475 //--------------------------------------------------------------------------------------------------484 //--------------------------------------------------------------------------------------------------495 //--------------------------------------------------------------------------------------------------505 //--------------------------------------------------------------------------------------------------516 //--------------------------------------------------------------------------------------------------528 //--------------------------------------------------------------------------------------------------537 //--------------------------------------------------------------------------------------------------548 //--------------------------------------------------------------------------------------------------557 //--------------------------------------------------------------------------------------------------567 //--------------------------------------------------------------------------------------------------576 //--------------------------------------------------------------------------------------------------587 //--------------------------------------------------------------------------------------------------598 //--------------------------------------------------------------------------------------------------606 //--------------------------------------------------------------------------------------------------615 //--------------------------------------------------------------------------------------------------624 //--------------------------------------------------------------------------------------------------633 //--------------------------------------------------------------------------------------------------643 //--------------------------------------------------------------------------------------------------650 //--------------------------------------------------------------------------------------------------659 * @note For PSK credentials see le_wifiClient_SetPassphrase() or le_wifiClient_SetPreSharedKey() .662 //--------------------------------------------------------------------------------------------------669 //--------------------------------------------------------------------------------------------------677 //--------------------------------------------------------------------------------------------------void le_wifiClient_ConnectService(void)le_wifiClient_SecurityProtocol_tDefinition: le_wifiClient_interface.h:316void(* le_wifiClient_DisconnectHandler_t)(void *)Definition: le_wifiClient_interface.h:209void 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:339le_result_t le_wifiClient_Disconnect(void)Using WPA Enterprise.Definition: le_wifiClient_interface.h:326struct le_wifiClient_AccessPoint * le_wifiClient_AccessPointRef_tDefinition: le_wifiClient_interface.h:291le_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)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:328le_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:348le_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:305