IoT Temperature Sensor Demo.
Copyright (c) 2016-2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | DEFAULT_AUTH M2M_WIFI_SEC_WPA_PSK |
#define | DEFAULT_CHANNEL M2M_WIFI_CH_ALL |
#define | DEFAULT_PWD "default" |
#define | DEFAULT_SSID "default" |
#define | DEMO_PRODUCT_NAME "Temp1" |
Sensor name. More... | |
#define | DEMO_REPORT_INTERVAL (1000) |
#define | DEMO_SERVER_IP "255.255.255.255" |
#define | DEMO_SERVER_PORT (6666) |
#define | DEMO_WLAN_AP_CHANNEL 1 |
#define | DEMO_WLAN_AP_DOMAIN_NAME "atmelconfig.com" |
#define | DEMO_WLAN_AP_IP_ADDRESS {192,168,1,10} |
#define | DEMO_WLAN_AP_MODE 0 |
#define | DEMO_WLAN_AP_NAME "WINC1500_MyAP" |
#define | DEMO_WLAN_AP_SECURITY M2M_WIFI_SEC_OPEN |
#define | DEMO_WLAN_AP_WEP_INDEX 0 |
#define | DEMO_WLAN_AP_WEP_KEY "1234567890" |
#define | DEMO_WLAN_AP_WEP_SIZE WEP_40_KEY_STRING_SIZE |
Functions | |
void | demo_start (void) |
Demo main function. More... | |
#define DEFAULT_AUTH M2M_WIFI_SEC_WPA_PSK |
Referenced by parse_user_input().
#define DEFAULT_CHANNEL M2M_WIFI_CH_ALL |
Referenced by parse_user_input().
#define DEFAULT_PWD "default" |
Referenced by parse_user_input().
#define DEFAULT_SSID "default" |
Referenced by parse_user_input().
#define DEMO_PRODUCT_NAME "Temp1" |
Sensor name.
Referenced by demo_wifi_socket_handler().
#define DEMO_REPORT_INTERVAL (1000) |
Referenced by demo_start().
#define DEMO_SERVER_IP "255.255.255.255" |
#define DEMO_SERVER_PORT (6666) |
Referenced by demo_start().
#define DEMO_WLAN_AP_CHANNEL 1 |
#define DEMO_WLAN_AP_DOMAIN_NAME "atmelconfig.com" |
#define DEMO_WLAN_AP_IP_ADDRESS {192,168,1,10} |
#define DEMO_WLAN_AP_MODE 0 |
#define DEMO_WLAN_AP_NAME "WINC1500_MyAP" |
Referenced by print_provisioning_details().
#define DEMO_WLAN_AP_SECURITY M2M_WIFI_SEC_OPEN |
#define DEMO_WLAN_AP_WEP_INDEX 0 |
#define DEMO_WLAN_AP_WEP_KEY "1234567890" |
#define DEMO_WLAN_AP_WEP_SIZE WEP_40_KEY_STRING_SIZE |
void demo_start | ( | void | ) |
Demo main function.
References _htons, AF_INET, at30tse_init(), at30tse_read_temperature(), bind(), button_press_duration(), s_msg_user_input::channel, delay, delay_ms, DEMO_REPORT_INTERVAL, DEMO_SERVER_PORT, demo_wifi_socket_handler(), demo_wifi_state(), gacHttpProvDomainName, s_msg_temp_report::led, LED_0_PIN, M2M_SUCCESS, m2m_wifi_connect(), m2m_wifi_default_connect(), m2m_wifi_disable_ap(), m2m_wifi_handle_events(), m2m_wifi_init(), m2m_wifi_start_provision_mode(), ms_ticks, nm_bsp_init(), NULL, parse_user_input(), s_msg_user_input::password, tstrWifiInitParam::pfAppWifiCb, port_pin_get_input_level(), port_pin_get_output_level(), port_pin_toggle_output_level(), print_provisioning_details(), registerSocketCallback(), rx_socket, in_addr::s_addr, s_msg_user_input::security, sendto(), sockaddr_in::sin_addr, sockaddr_in::sin_family, sockaddr_in::sin_port, SOCK_DGRAM, socket(), socketInit(), s_msg_user_input::SSID, s_msg_temp_report::temp, toggle_led_ms, tx_socket, user_credentials, wifi_connected, and wifi_provisioned.
Referenced by main().