![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
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
--- 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"); }