application configuration.
Copyright (c) 2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | MAIN_WIFI_M2M_BUFFER_SIZE 100 |
#define | MAIN_WIFI_M2M_PACKET_COUNT 1 |
tcp MAX packet count More... | |
#define | MAIN_WIFI_M2M_PRODUCT_NAME "WILC1000 : THE TEST MESSAGE" |
#define | MON_MODE_MAX_PKT_COUNT 700 |
Functions | |
void | http_connection (char *host_name, unsigned short port) |
void | tcp_client (void) |
void | tcp_server (void) |
void | udp_client (void) |
void | udp_server (void) |
void | wilc_task_1 (void *argument) |
AT commands main function. More... | |
#define MAIN_WIFI_M2M_BUFFER_SIZE 100 |
Referenced by tcp_server(), and udp_server().
#define MAIN_WIFI_M2M_PACKET_COUNT 1 |
tcp MAX packet count
Referenced by tcp_client(), tcp_server(), udp_client(), and udp_server().
#define MAIN_WIFI_M2M_PRODUCT_NAME "WILC1000 : THE TEST MESSAGE" |
#define MON_MODE_MAX_PKT_COUNT 700 |
Referenced by wifi_monitoring_cb().
void http_connection | ( | char * | host_name, |
unsigned short | port | ||
) |
References _htons, buffer, HTTP_REQUEST_PART1, HTTP_REQUEST_PART2, IPV4_BYTE, osprintf(), RECV_BUF_SIZE, and SEND_BUF_SIZE.
Referenced by wilc_task_1().
void tcp_client | ( | void | ) |
References cmd::au8ParamsList, htonl, htons, MAIN_WIFI_M2M_PACKET_COUNT, NULL, osprintf(), temp_cmd_content, and vTaskDelay().
Referenced by wilc_task_1().
void tcp_server | ( | void | ) |
References cmd::au8Cmd, cmd::au8ParamsList, htonl, htons, local_ip, MAIN_WIFI_M2M_BUFFER_SIZE, MAIN_WIFI_M2M_PACKET_COUNT, osprintf(), temp_cmd_content, and cmd::u8NumOfParameters.
Referenced by wilc_task_1().
void udp_client | ( | void | ) |
References cmd::au8ParamsList, htonl, htons, MAIN_WIFI_M2M_PACKET_COUNT, NULL, osprintf(), RECV_BUF_SIZE, temp_cmd_content, and vTaskDelay().
Referenced by wilc_task_1().
void udp_server | ( | void | ) |
References cmd::au8ParamsList, htonl, htons, local_ip, MAIN_WIFI_M2M_BUFFER_SIZE, MAIN_WIFI_M2M_PACKET_COUNT, osprintf(), and temp_cmd_content.
Referenced by wilc_task_1().
void wilc_task_1 | ( | void * | argument | ) |
AT commands main function.
References ANT_MODE, ANT_SWTCH_GPIO_CTRL_MODE, ANTENNA_GPIO_NUM_1, ANTENNA_GPIO_NUM_2, cmd::au8Cmd, cmd::au8ParamsList, http_connection(), http_downloader(), iperf_tcp_server(), iperf_udp_server(), m2m_wifi_set_antenna_mode(), net_init(), NULL, os_m2m_wifi_init(), param, tstrWifiInitParam::pfAppMonCb, tstrWifiInitParam::pfAppWifiCb, ping_function(), pvPortMalloc(), tcp_client(), tcp_server(), temp_cmd_content, cmd::u8NumOfParameters, udp_client(), udp_server(), vPortFree(), vSemaphoreCreateBinary, vSemaphoreDelete, wifi_cb(), wifi_monitoring_cb(), xSemaphoreCreateCounting, and xSemaphoreTake.
Referenced by main().