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 */ |
#define STA_WLAN_PSK "12345678" /* < Password for Destination SSID */ |
#define STA_WLAN_SSID "DEMO_AP" /* < Destination SSID */ |
Wi-Fi Settings.
void sta_task | ( | void * | argument | ) |
STA task main function.
References ip_addr::addr, ANT_MODE, ANT_SWTCH_GPIO_CTRL_MODE, ANTENNA_GPIO_NUM_1, ANTENNA_GPIO_NUM_2, AP_WLAN_AUTH, AP_WLAN_PSK, AP_WLAN_SSID, tuniM2MWifiAuth::au8PSK, tstrM2MAPConfig::au8SSID, city_list, CONF_METHOD_LABEL, CONF_METHOD_PHYSICAL_PBC, ERR_OK, gbConnectedWifi, gbHostIpByName, gstrAPWepParam, gstrSTAWepParam, gu32HostIp, HTTP_PORT, M2M_WIFI_CH_11, M2M_WIFI_CH_ALL, M2M_WIFI_SEC_OPEN, M2M_WIFI_SEC_WEP, m2m_wifi_set_antenna_mode(), net_init(), netbuf_data(), netbuf_delete(), netbuf_next(), NULL, os_m2m_wifi_ap_get_assoc_info(), os_m2m_wifi_connect(), os_m2m_wifi_enable_ap(), os_m2m_wifi_init(), os_m2m_wifi_p2p(), os_m2m_wifi_set_device_name(), os_m2m_wifi_set_p2p_control_ifc(), osprint(), P2P_AP_CONCURRENCY_INTERFACE, P2P_PBC, parse_response(), tstrWifiInitParam::pfAppWifiCb, rx_buf, server_response, STA_POST_BUFFER, STA_PREFIX_BUFFER, STA_WLAN_AUTH, STA_WLAN_PSK, STA_WLAN_SSID, tuniM2MWifiAuth::strWepInfo, tstrM2MAPConfig::u16BeaconInterval, u8_encode(), tstrM2MAPConfig::u8ListenChannel, tstrM2MAPConfig::u8SecType, tstrM2MAPConfig::uniAuth, utf8_STA_mode_PSK, utf8_STA_mode_SSID, vPortFree(), vSemaphoreDelete, vTaskDelay(), webSHORT_DELAY, wifi_cb(), xSemaphoreCreateCounting, and xSemaphoreTake.
Referenced by main().