MAIN configuration.
Copyright (c) 2015-2018 Microchip Technology Inc. and its subsidiaries.
#include "driver/include/m2m_wifi.h"
Macros | |
#define | IPV4_BYTE(val, index) ((val >> (index * 8)) & 0xFF) |
Using IP address. More... | |
#define | MAIN_APP_ID "&appid=ebea1368f9a2bdd172f7115ff8d0371d" |
#define | MAIN_CITY_NAME "Shanghai" |
Input City Name. More... | |
#define | MAIN_POST_BUFFER "&mode=xml&units=metric HTTP/1.1\r\nHost: api.openweathermap.org\r\nAccept: */*\r\n\r\n" |
#define | MAIN_PREFIX_BUFFER "GET /data/2.5/weather?q=" |
Send buffer of TCP socket. More... | |
#define | MAIN_SERVER_PORT (80) |
Using broadcast address for simplicity. More... | |
#define | MAIN_WEATHER_SERVER_NAME "api.openweathermap.org" |
Weather information provider server. More... | |
#define | MAIN_WIFI_M2M_BUFFER_SIZE 1024 |
Receive buffer size. More... | |
#define | MAIN_WLAN_AUTH M2M_WIFI_SEC_WPA_PSK /* < Security manner */ |
#define | MAIN_WLAN_PSK "MicroController" /* < Password for Destination SSID */ |
#define | MAIN_WLAN_SSID "AVRGUEST" /* < Destination SSID */ |
Wi-Fi Settings. More... | |
#define IPV4_BYTE | ( | val, | |
index | |||
) | ((val >> (index * 8)) & 0xFF) |
Using IP address.
Referenced by resolve_cb().
#define MAIN_APP_ID "&appid=ebea1368f9a2bdd172f7115ff8d0371d" |
Referenced by wifi_require_weather().
#define MAIN_CITY_NAME "Shanghai" |
Input City Name.
#define MAIN_POST_BUFFER "&mode=xml&units=metric HTTP/1.1\r\nHost: api.openweathermap.org\r\nAccept: */*\r\n\r\n" |
Referenced by wifi_require_weather().
#define MAIN_PREFIX_BUFFER "GET /data/2.5/weather?q=" |
Send buffer of TCP socket.
Referenced by wifi_require_weather().
#define MAIN_SERVER_PORT (80) |
Using broadcast address for simplicity.
Referenced by main().
#define MAIN_WEATHER_SERVER_NAME "api.openweathermap.org" |
Weather information provider server.
#define MAIN_WIFI_M2M_BUFFER_SIZE 1024 |
Receive buffer size.
Referenced by wifi_recieve_packet(), and wifi_require_weather().
#define MAIN_WLAN_AUTH M2M_WIFI_SEC_WPA_PSK /* < Security manner */ |
Referenced by wifi_connect().
#define MAIN_WLAN_PSK "MicroController" /* < Password for Destination SSID */ |
#define MAIN_WLAN_SSID "AVRGUEST" /* < Destination SSID */ |
Wi-Fi Settings.