Go to the documentation of this file.
37 #include "portmacro.h"
40 #include "aws_wifi_config.h"
41 #include "types/iot_network_types.h"
132 char cSSID[ wificonfigMAX_SSID_LEN + 1 ];
133 uint8_t ucBSSID[ wificonfigMAX_BSSID_LEN ];
151 char cSSID[ wificonfigMAX_SSID_LEN + 1 ];
153 uint8_t ucBSSID[ wificonfigMAX_BSSID_LEN ];
154 char cPassword[ wificonfigMAX_PASSPHRASE_LEN + 1 ];
304 uint16_t * pusIndex );
376 uint32_t ulIntervalMS );
432 uint8_t * pucIPAddr );
454 uint8_t ucNumNetworks );
509 const void * pvOptionValue );
523 void * pvOptionValue );
WIFIReturnCode_t WIFI_GetHostIP(char *pcHost, uint8_t *pucIPAddr)
Retrieves the host IP address from a host name using DNS.
WIFISecurity_t
Wi-Fi Security types.
Definition: iot_wifi.h:63
uint8_t ucPasswordLength
Definition: iot_wifi.h:155
WIFIDeviceMode_t
Wi-Fi device modes.
Definition: iot_wifi.h:79
@ eWiFiSecurityWPA2_ent
Definition: iot_wifi.h:68
uint8_t ucSSIDLength
Definition: iot_wifi.h:152
@ eWiFiNotSupported
Definition: iot_wifi.h:54
@ eWiFiModeStation
Definition: iot_wifi.h:80
WIFISecurity_t xSecurity
Definition: iot_wifi.h:156
WIFIReturnCode_t WIFI_Reset(void)
Resets the Wi-Fi Module.
WIFIReturnCode_t WIFI_On(void)
Turns on Wi-Fi.
@ eWiFiSecurityWPA2
Definition: iot_wifi.h:67
WIFIReturnCode_t WIFI_NetworkAdd(const WIFINetworkProfile_t *const pxNetworkProfile, uint16_t *pusIndex)
Add a Wi-Fi Network profile.
WIFIReturnCode_t WIFI_GetIP(uint8_t *pucIPAddr)
Retrieves the Wi-Fi interface's IP address.
@ eWiFiSecurityNotSupported
Definition: iot_wifi.h:69
const char * pcPassword
Definition: iot_wifi.h:111
@ eWiFiPMNormal
Definition: iot_wifi.h:94
WIFIReturnCode_t WIFI_StartAP(void)
Start SoftAP mode.
@ eWiFiFailure
Definition: iot_wifi.h:52
WIFIReturnCode_t WIFI_StopAP(void)
Stop SoftAP mode.
uint8_t ucPasswordLength
Definition: iot_wifi.h:112
@ eWiFiPMNotSupported
Definition: iot_wifi.h:97
WIFIPMMode_t
Wi-Fi device power management modes.
Definition: iot_wifi.h:93
WIFISecurity_t xSecurity
Definition: iot_wifi.h:134
@ eWiFiPMLowPower
Definition: iot_wifi.h:95
@ eWiFiSuccess
Definition: iot_wifi.h:51
WIFIReturnCode_t WIFI_SetPMMode(WIFIPMMode_t xPMModeType, const void *pvOptionValue)
Set the Wi-Fi power management mode.
WIFIReturnCode_t WIFI_Scan(WIFIScanResult_t *pxBuffer, uint8_t ucNumNetworks)
Perform a Wi-Fi network Scan.
Parameters passed to the WIFI_ConnectAP API for connection.
Definition: iot_wifi.h:108
WIFIReturnCode_t WIFI_NetworkGet(WIFINetworkProfile_t *pxNetworkProfile, uint16_t usIndex)
Get a Wi-Fi network profile.
WIFIReturnCode_t WIFI_ConfigureAP(const WIFINetworkParams_t *const pxNetworkParams)
Configure SoftAP.
WIFIReturnCode_t WIFI_SetMode(WIFIDeviceMode_t xDeviceMode)
Sets the Wi-Fi mode.
WIFIReturnCode_t WIFI_RegisterNetworkStateChangeEventCallback(IotNetworkStateChangeEventCallback_t xCallback)
Registers application callback for network state change events from WiFi layer.
WIFIReturnCode_t WIFI_NetworkDelete(uint16_t usIndex)
Delete a Wi-Fi Network profile.
@ eWiFiModeP2P
Definition: iot_wifi.h:82
WIFIReturnCode_t WIFI_Off(void)
Turns off Wi-Fi.
WIFIReturnCode_t WIFI_Disconnect(void)
Disconnects from the currently connected Access Point.
@ eWiFiTimeout
Definition: iot_wifi.h:53
WIFIReturnCode_t WIFI_GetMode(WIFIDeviceMode_t *pxDeviceMode)
Gets the Wi-Fi mode.
Wi-Fi scan results.
Definition: iot_wifi.h:131
uint8_t ucSSIDLength
Definition: iot_wifi.h:110
const char * pcSSID
Definition: iot_wifi.h:109
WIFIReturnCode_t WIFI_GetMAC(uint8_t *pucMac)
Retrieves the Wi-Fi interface's MAC address.
@ eWiFiPMAlwaysOn
Definition: iot_wifi.h:96
@ eWiFiModeNotSupported
Definition: iot_wifi.h:83
BaseType_t WIFI_IsConnected(void)
Check if the Wi-Fi is connected.
int8_t cChannel
Definition: iot_wifi.h:114
int8_t cRSSI
Definition: iot_wifi.h:135
int8_t cChannel
Definition: iot_wifi.h:136
WIFIReturnCode_t WIFI_ConnectAP(const WIFINetworkParams_t *const pxNetworkParams)
Connects to the Wi-Fi Access Point (AP) specified in the input.
WIFIReturnCode_t
Return code denoting API status.
Definition: iot_wifi.h:50
@ eWiFiSecurityWEP
Definition: iot_wifi.h:65
WIFISecurity_t xSecurity
Definition: iot_wifi.h:113
@ eWiFiSecurityOpen
Definition: iot_wifi.h:64
@ eWiFiSecurityWPA
Definition: iot_wifi.h:66
WIFIReturnCode_t WIFI_GetPMMode(WIFIPMMode_t *pxPMModeType, void *pvOptionValue)
Get the Wi-Fi power management mode.
Wi-Fi network parameters passed to the WIFI_NetworkAdd API.
Definition: iot_wifi.h:150
@ eWiFiModeAP
Definition: iot_wifi.h:81
uint8_t ucHidden
Definition: iot_wifi.h:137
WIFIReturnCode_t WIFI_Ping(uint8_t *pucIPAddr, uint16_t usCount, uint32_t ulIntervalMS)
Ping an IP address in the network.