A simple IoTHub sample using HTTP as transport
Dependencies: EthernetInterface NTPClient iothub_client iothub_http_transport mbed-rtos mbed wolfSSL serializer azure_c_shared_utility
This sample showcases the usage of Azure IoT client libraries with the HTTP transport for sending/receiving raw messages from an IoT Hub.
Diff: simplesample_http.c
- Revision:
- 51:718bee5b02c2
- Parent:
- 49:6f4fa05511db
- Child:
- 56:99dabe3ce9ff
--- a/simplesample_http.c Fri Oct 21 22:17:29 2016 +0000 +++ b/simplesample_http.c Wed Nov 16 21:40:28 2016 -0800 @@ -198,7 +198,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"); }