A simple IoTHub sample using MQTT as transport
Dependencies: EthernetInterface NTPClient mbed-rtos mbed wolfSSL azure_c_shared_utility iothub_client azure_umqtt_c iothub_mqtt_transport serializer
Diff: simplesample_mqtt.c
- Revision:
- 25:6b2b9feb6dc3
- Parent:
- 17:a6f7340182f9
- Child:
- 26:3126b9d4187b
diff -r f46102220d94 -r 6b2b9feb6dc3 simplesample_mqtt.c --- a/simplesample_mqtt.c Thu Oct 20 17:10:23 2016 -0700 +++ b/simplesample_mqtt.c Wed Nov 16 21:40:49 2016 -0800 @@ -179,7 +179,7 @@ { unsigned char* destination; size_t destinationSize; - if (SERIALIZE(&destination, &destinationSize, myWeather->DeviceId, myWeather->WindSpeed) != IOT_AGENT_OK) + if (SERIALIZE(&destination, &destinationSize, myWeather->DeviceId, myWeather->WindSpeed) != CODEFIRST_OK) { (void)printf("Failed to serialize\r\n"); }