Microchip® Advanced Software Framework

iot_temperature_demo/demo.h File Reference

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
#define DEFAULT_CHANNEL   M2M_WIFI_CH_ALL
#define DEFAULT_PWD   "default"

Referenced by parse_user_input().

#define DEFAULT_SSID   "default"
#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"
#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.

Initialize timer.

Initialize QTouch library and configure touch sensors.

Configure port pins

Turn off all extension board LEDs

Start touch sensor measurement, if touch_time.time_to_measure_touch flag is set by timer.

Get touch sensor states

Clear all slider controlled LEDs

If slider is activated

Parse slider position