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 to188 * While the prior section lists out the le_wifiClient APIs that can be used together to configure202 * This API also achieves the need to keep Wifi configurations back within wifiService instead of205 * With the use of this API, Wifi configurations need to be stored in the Legato config tree on the206 * path "wifiService:/wifi/channel/", under which configurations of multiple SSIDs can be stored at248 * During the time when this AP reference is set for use, there comes the need to be able to query249 * le_wifiClient for it back. This is what this le_wifiClient_GetCurrentConnection() API seeks to295 //--------------------------------------------------------------------------------------------------299 //--------------------------------------------------------------------------------------------------302 //--------------------------------------------------------------------------------------------------305 * Connect the current client thread to the service providing this API. Block until the service is308 * For each thread that wants to use this API, either ConnectService or TryConnectService must be309 * called before any other functions in this API. Normally, ConnectService is automatically called314 //--------------------------------------------------------------------------------------------------320 //--------------------------------------------------------------------------------------------------323 * Try to connect the current client thread to the service providing this API. Return with an error326 * For each thread that wants to use this API, either ConnectService or TryConnectService must be327 * called before any other functions in this API. Normally, ConnectService is automatically called336 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).339 //--------------------------------------------------------------------------------------------------345 //--------------------------------------------------------------------------------------------------349 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants352 //--------------------------------------------------------------------------------------------------359 //--------------------------------------------------------------------------------------------------365 * longer a connection to the service, and the functions in this API can't be used. For details, see370 //--------------------------------------------------------------------------------------------------377 //--------------------------------------------------------------------------------------------------381 //--------------------------------------------------------------------------------------------------384 //--------------------------------------------------------------------------------------------------388 //--------------------------------------------------------------------------------------------------392 //--------------------------------------------------------------------------------------------------396 //--------------------------------------------------------------------------------------------------411 //--------------------------------------------------------------------------------------------------415 //--------------------------------------------------------------------------------------------------434 //--------------------------------------------------------------------------------------------------438 //--------------------------------------------------------------------------------------------------442 //--------------------------------------------------------------------------------------------------446 //--------------------------------------------------------------------------------------------------448 (455 //--------------------------------------------------------------------------------------------------462 //--------------------------------------------------------------------------------------------------471 //--------------------------------------------------------------------------------------------------475 //--------------------------------------------------------------------------------------------------482 //--------------------------------------------------------------------------------------------------491 //--------------------------------------------------------------------------------------------------497 //--------------------------------------------------------------------------------------------------506 //--------------------------------------------------------------------------------------------------512 //--------------------------------------------------------------------------------------------------522 //--------------------------------------------------------------------------------------------------528 //--------------------------------------------------------------------------------------------------536 //--------------------------------------------------------------------------------------------------542 //--------------------------------------------------------------------------------------------------552 //--------------------------------------------------------------------------------------------------558 //--------------------------------------------------------------------------------------------------568 //--------------------------------------------------------------------------------------------------575 //--------------------------------------------------------------------------------------------------585 //--------------------------------------------------------------------------------------------------596 //--------------------------------------------------------------------------------------------------608 //--------------------------------------------------------------------------------------------------619 //--------------------------------------------------------------------------------------------------627 //--------------------------------------------------------------------------------------------------634 //--------------------------------------------------------------------------------------------------645 //--------------------------------------------------------------------------------------------------654 //--------------------------------------------------------------------------------------------------663 * @note This is one way to authenticate against the access point. The other one is provided by the664 * le_wifiClient_SetPassPhrase() function. Both ways are exclusive and are effective only when used667 //--------------------------------------------------------------------------------------------------677 //--------------------------------------------------------------------------------------------------686 //--------------------------------------------------------------------------------------------------695 //--------------------------------------------------------------------------------------------------705 //--------------------------------------------------------------------------------------------------716 //--------------------------------------------------------------------------------------------------724 //--------------------------------------------------------------------------------------------------733 //--------------------------------------------------------------------------------------------------735 * This function specifies whether the target Access Point is hiding its presence from clients or742 * @note By default, this attribute is not set which means that the client is unable to connect to746 //--------------------------------------------------------------------------------------------------755 //--------------------------------------------------------------------------------------------------766 //--------------------------------------------------------------------------------------------------775 //--------------------------------------------------------------------------------------------------786 //--------------------------------------------------------------------------------------------------793 //--------------------------------------------------------------------------------------------------802 * @note For PSK credentials see le_wifiClient_SetPassphrase() or le_wifiClient_SetPreSharedKey() .805 //--------------------------------------------------------------------------------------------------812 //--------------------------------------------------------------------------------------------------820 //--------------------------------------------------------------------------------------------------826 //--------------------------------------------------------------------------------------------------836 //--------------------------------------------------------------------------------------------------struct le_wifiClient_NewEventHandler * le_wifiClient_NewEventHandlerRef_tDefinition: le_wifiClient_interface.h:439le_wifiClient_AccessPointRef_t le_wifiClient_GetNextAccessPoint(void)le_result_t le_wifiClient_LoadSsid(const char *LE_NONNULL ssid, le_wifiClient_AccessPointRef_t *apRefPtr)void(* le_wifiClient_DisconnectHandler_t)(void *)Definition: le_wifiClient_interface.h:300void 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:403le_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:416le_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)void le_wifiClient_GetCurrentConnection(le_wifiClient_AccessPointRef_t *apRefPtr)Using WPA Enterprise.Definition: le_wifiClient_interface.h:426Using WPA2 Enterprise.Definition: le_wifiClient_interface.h:428void(* le_wifiClient_NewEventHandlerFunc_t)(le_wifiClient_Event_t event, void *contextPtr)Definition: le_wifiClient_interface.h:448le_result_t le_wifiClient_TryConnectService(void)struct le_wifiClient_AccessPoint * le_wifiClient_AccessPointRef_tDefinition: le_wifiClient_interface.h:389le_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)