Remote monitoring IoTHub device sample Added real SHTx sensor to get temperature and humidity Added new command to set temperature scale change Removed "mock" commands to set temperature and humidity values It's configured to work on FRDM-K64F board
Dependencies: EthernetInterface NTPClient SHTx iothub_amqp_transport iothub_client mbed-rtos mbed proton-c-mbed serializer wolfSSL
Fork of remote_monitoring by
Diff: remote_monitoring.c
- Revision:
- 22:afe08a0ed332
- Parent:
- 20:ea66de0f1a06
- Child:
- 23:e37e4e321690
diff -r b10f325a5d55 -r afe08a0ed332 remote_monitoring.c --- a/remote_monitoring.c Fri Oct 23 01:42:00 2015 +0000 +++ b/remote_monitoring.c Fri Nov 13 16:08:20 2015 -0800 @@ -224,7 +224,7 @@ (void)printf("Sending sensor value Temperature = %02f, Humidity = %02f\r\n", thermostat->Temperature, thermostat->Humidity); - if (SERIALIZE(&buffer, &bufferSize, thermostat->Temperature, thermostat->ExternalTemperature, thermostat->Humidity, thermostat->DeviceId) != IOT_AGENT_OK) + if (SERIALIZE(&buffer, &bufferSize, thermostat->DeviceId, thermostat->Temperature, thermostat->Humidity, thermostat->ExternalTemperature) != IOT_AGENT_OK) { (void)printf("Failed sending sensor value\r\n"); }