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 //--------------------------------------------------------------------------------------------------297 //--------------------------------------------------------------------------------------------------301 //--------------------------------------------------------------------------------------------------305 //--------------------------------------------------------------------------------------------------309 //--------------------------------------------------------------------------------------------------324 //--------------------------------------------------------------------------------------------------328 //--------------------------------------------------------------------------------------------------347 //--------------------------------------------------------------------------------------------------351 //--------------------------------------------------------------------------------------------------355 //--------------------------------------------------------------------------------------------------359 //--------------------------------------------------------------------------------------------------361 (368 //--------------------------------------------------------------------------------------------------375 //--------------------------------------------------------------------------------------------------384 //--------------------------------------------------------------------------------------------------388 //--------------------------------------------------------------------------------------------------395 //--------------------------------------------------------------------------------------------------404 //--------------------------------------------------------------------------------------------------410 //--------------------------------------------------------------------------------------------------419 //--------------------------------------------------------------------------------------------------425 //--------------------------------------------------------------------------------------------------435 //--------------------------------------------------------------------------------------------------441 //--------------------------------------------------------------------------------------------------449 //--------------------------------------------------------------------------------------------------455 //--------------------------------------------------------------------------------------------------465 //--------------------------------------------------------------------------------------------------471 //--------------------------------------------------------------------------------------------------481 //--------------------------------------------------------------------------------------------------488 //--------------------------------------------------------------------------------------------------498 //--------------------------------------------------------------------------------------------------509 //--------------------------------------------------------------------------------------------------521 //--------------------------------------------------------------------------------------------------532 //--------------------------------------------------------------------------------------------------543 //--------------------------------------------------------------------------------------------------552 //--------------------------------------------------------------------------------------------------561 * @note This is one way to authenticate against the access point. The other one is provided by the562 * le_wifiClient_SetPassPhrase() function. Both ways are exclusive and are effective only when used565 //--------------------------------------------------------------------------------------------------575 //--------------------------------------------------------------------------------------------------584 //--------------------------------------------------------------------------------------------------593 //--------------------------------------------------------------------------------------------------603 //--------------------------------------------------------------------------------------------------614 //--------------------------------------------------------------------------------------------------622 //--------------------------------------------------------------------------------------------------631 //--------------------------------------------------------------------------------------------------633 * This function specifies whether the target Access Point is hiding its presence from clients or640 * @note By default, this attribute is not set which means that the client is unable to connect to644 //--------------------------------------------------------------------------------------------------653 //--------------------------------------------------------------------------------------------------664 //--------------------------------------------------------------------------------------------------673 //--------------------------------------------------------------------------------------------------684 //--------------------------------------------------------------------------------------------------691 //--------------------------------------------------------------------------------------------------700 * @note For PSK credentials see le_wifiClient_SetPassphrase() or le_wifiClient_SetPreSharedKey() .703 //--------------------------------------------------------------------------------------------------710 //--------------------------------------------------------------------------------------------------718 //--------------------------------------------------------------------------------------------------struct le_wifiClient_NewEventHandler * le_wifiClient_NewEventHandlerRef_tDefinition: le_wifiClient_interface.h:352le_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:316le_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:329le_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:339Using WPA2 Enterprise.Definition: le_wifiClient_interface.h:341void(* le_wifiClient_NewEventHandlerFunc_t)(le_wifiClient_Event_t event, void *contextPtr)Definition: le_wifiClient_interface.h:361le_result_t le_wifiClient_TryConnectService(void)struct le_wifiClient_AccessPoint * le_wifiClient_AccessPointRef_tDefinition: le_wifiClient_interface.h:302le_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)