STA Task.
Copyright (c) 2019 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | STA_POST_BUFFER "&appid=c592e14137c3471fa9627b44f6649db4&mode=xml&units=metric HTTP/1.1\r\nHost: api.openweathermap.org\r\nAccept: */*\r\n\r\n" |
#define | STA_PREFIX_BUFFER "GET /data/2.5/weather?q=" |
Send buffer of TCP socket. More... | |
#define | STA_WEATHER_SERVER_NAME "api.openweathermap.org" |
Weather information provider server. More... | |
#define | STA_WLAN_AUTH M2M_WIFI_SEC_WPA_PSK /* < Security type */ |
#define | STA_WLAN_PSK "12345678" /* < Password for Destination SSID */ |
#define | STA_WLAN_SSID "DEMO_AP" /* < Destination SSID */ |
Wi-Fi Settings. More... | |
Functions | |
void | sta_task (void *argument) |
STA task main function. More... | |
#define STA_POST_BUFFER "&appid=c592e14137c3471fa9627b44f6649db4&mode=xml&units=metric HTTP/1.1\r\nHost: api.openweathermap.org\r\nAccept: */*\r\n\r\n" |
#define STA_PREFIX_BUFFER "GET /data/2.5/weather?q=" |
Send buffer of TCP socket.
#define STA_WEATHER_SERVER_NAME "api.openweathermap.org" |
Weather information provider server.
#define STA_WLAN_AUTH M2M_WIFI_SEC_WPA_PSK /* < Security type */ |
Referenced by sta_task(), and wifi_cb().
#define STA_WLAN_PSK "12345678" /* < Password for Destination SSID */ |
Referenced by sta_task(), and wifi_cb().
#define STA_WLAN_SSID "DEMO_AP" /* < Destination SSID */ |
Wi-Fi Settings.
Referenced by sta_task(), and wifi_cb().
STA task main function.
References tstrM2MAPConfig::au8SSID, M2M_WIFI_CH_11, M2M_WIFI_CH_ALL, M2M_WIFI_SEC_OPEN, net_init(), os_m2m_wifi_connect(), os_m2m_wifi_init(), tstrWifiInitParam::pfAppWifiCb, STA_WLAN_AUTH, STA_WLAN_PSK, STA_WLAN_SSID, tstrM2MAPConfig::u8ListenChannel, tstrM2MAPConfig::u8SecType, vTaskDelay(), and wifi_cb().
Referenced by main().