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 //--------------------------------------------------------------------------------------------------317 //--------------------------------------------------------------------------------------------------321 //--------------------------------------------------------------------------------------------------340 //--------------------------------------------------------------------------------------------------344 //--------------------------------------------------------------------------------------------------348 //--------------------------------------------------------------------------------------------------352 //--------------------------------------------------------------------------------------------------354 (361 //--------------------------------------------------------------------------------------------------368 //--------------------------------------------------------------------------------------------------377 //--------------------------------------------------------------------------------------------------381 //--------------------------------------------------------------------------------------------------388 //--------------------------------------------------------------------------------------------------398 //--------------------------------------------------------------------------------------------------404 //--------------------------------------------------------------------------------------------------414 //--------------------------------------------------------------------------------------------------420 //--------------------------------------------------------------------------------------------------429 //--------------------------------------------------------------------------------------------------435 //--------------------------------------------------------------------------------------------------444 //--------------------------------------------------------------------------------------------------450 //--------------------------------------------------------------------------------------------------460 //--------------------------------------------------------------------------------------------------466 //--------------------------------------------------------------------------------------------------474 //--------------------------------------------------------------------------------------------------481 //--------------------------------------------------------------------------------------------------490 //--------------------------------------------------------------------------------------------------501 //--------------------------------------------------------------------------------------------------511 //--------------------------------------------------------------------------------------------------522 //--------------------------------------------------------------------------------------------------534 //--------------------------------------------------------------------------------------------------543 //--------------------------------------------------------------------------------------------------554 //--------------------------------------------------------------------------------------------------563 //--------------------------------------------------------------------------------------------------573 //--------------------------------------------------------------------------------------------------582 //--------------------------------------------------------------------------------------------------593 //--------------------------------------------------------------------------------------------------604 //--------------------------------------------------------------------------------------------------612 //--------------------------------------------------------------------------------------------------621 //--------------------------------------------------------------------------------------------------623 * This function specifies whether the target Access Point is hiding its presence from clients or626 * @note By default, this attribute is not set which means that the client is unable to connect to635 //--------------------------------------------------------------------------------------------------644 //--------------------------------------------------------------------------------------------------654 //--------------------------------------------------------------------------------------------------663 //--------------------------------------------------------------------------------------------------673 //--------------------------------------------------------------------------------------------------680 //--------------------------------------------------------------------------------------------------689 * @note For PSK credentials see le_wifiClient_SetPassphrase() or le_wifiClient_SetPreSharedKey() .692 //--------------------------------------------------------------------------------------------------699 //--------------------------------------------------------------------------------------------------707 //--------------------------------------------------------------------------------------------------struct le_wifiClient_NewEventHandler * le_wifiClient_NewEventHandlerRef_tDefinition: le_wifiClient_interface.h:345le_wifiClient_AccessPointRef_t le_wifiClient_GetNextAccessPoint(void)void(* le_wifiClient_DisconnectHandler_t)(void *)Definition: le_wifiClient_interface.h:213void le_wifiClient_ConnectService(void)le_result_t le_wifiClient_GetBssid(le_wifiClient_AccessPointRef_t accessPointRef, char *bssid, size_t bssidSize)le_result_t le_wifiClient_SetUserCredentials(le_wifiClient_AccessPointRef_t accessPointRef, const char *LE_NONNULL userName, const char *LE_NONNULL password)le_result_t le_wifiClient_GetSsid(le_wifiClient_AccessPointRef_t accessPointRef, uint8_t *ssidPtr, size_t *ssidSizePtr)le_result_t le_wifiClient_Start(void)WiFi Scan result for available Access Points available.Definition: le_wifiClient_interface.h:309le_result_t le_wifiClient_Stop(void)int16_t le_wifiClient_GetSignalStrength(le_wifiClient_AccessPointRef_t accessPointRef)le_result_t le_wifiClient_SetSecurityProtocol(le_wifiClient_AccessPointRef_t accessPointRef, le_wifiClient_SecurityProtocol_t securityProtocol)void le_wifiClient_SetServerDisconnectHandler(le_wifiClient_DisconnectHandler_t disconnectHandler, void *contextPtr)le_wifiClient_SecurityProtocol_tDefinition: le_wifiClient_interface.h:322le_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)le_result_t le_wifiClient_Delete(le_wifiClient_AccessPointRef_t accessPointRef)le_result_t le_wifiClient_SetPreSharedKey(le_wifiClient_AccessPointRef_t accessPointRef, const char *LE_NONNULL PreSharedKey)le_result_t le_wifiClient_Disconnect(void)void le_wifiClient_RemoveNewEventHandler(le_wifiClient_NewEventHandlerRef_t handlerRef)le_wifiClient_AccessPointRef_t le_wifiClient_Create(const uint8_t *SsidPtr, size_t SsidSize)Using WPA Enterprise.Definition: le_wifiClient_interface.h:332Using WPA2 Enterprise.Definition: le_wifiClient_interface.h:334void(* le_wifiClient_NewEventHandlerFunc_t)(le_wifiClient_Event_t event, void *contextPtr)Definition: le_wifiClient_interface.h:354le_result_t le_wifiClient_TryConnectService(void)struct le_wifiClient_AccessPoint * le_wifiClient_AccessPointRef_tDefinition: le_wifiClient_interface.h:295le_result_t le_wifiClient_Scan(void)le_result_t le_wifiClient_Connect(le_wifiClient_AccessPointRef_t accessPointRef)void le_wifiClient_DisconnectService(void)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_SetPassphrase(le_wifiClient_AccessPointRef_t accessPointRef, const char *LE_NONNULL PassPhrase)