Paolo Patierno / Mbed 2 deprecated sht15_remote_monitoring

Dependencies:   EthernetInterface NTPClient SHTx iothub_amqp_transport iothub_client mbed-rtos mbed proton-c-mbed serializer wolfSSL

Fork of remote_monitoring by Azure IoT

Files at this revision

API Documentation at this revision

Comitter:
AzureIoTClient
Date:
Fri Nov 13 16:08:20 2015 -0800
Parent:
21:b10f325a5d55
Child:
23:e37e4e321690
Commit message:
v1.0.0-preview.4

Changed in this revision

remote_monitoring.c Show annotated file Show diff for this revision Revisions of this file
--- 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");
                         }