Temperature sensor anomaly IoTHub sample
Dependencies: C12832 EthernetInterface LM75B NTPClient iothub_client iothub_http_transport mbed-rtos mbed serializer wolfSSL azure_c_shared_utility
This sample showcases the usage of Azure IoT client libraries to build an application sample that uploads temperature data and reacts to an alert for a temperature anomaly sent by a cloud service.
Diff: main.cpp
- Revision:
- 4:b0b512a80572
- Parent:
- 2:e6752ef906fc
- Child:
- 5:4afe2073d473
--- a/main.cpp Thu Sep 17 05:54:18 2015 +0000 +++ b/main.cpp Thu Sep 17 00:03:37 2015 -0700 @@ -20,8 +20,8 @@ PwmOut spkr(D6); Serial pc(USBTX, USBRX); -static const char* connectionString = "HostName=..."; -static const char* deviceId = "<<deviceName>>"; /*must match the one on connectionString*/ +static const char* connectionString = "[device connection string]"; +static const char* deviceId = "[deviceName]"; /*must match the one on connectionString*/ static Timer led_timer; static unsigned char alarm_type;