A simple IoTHub sample using AMQP as transport
Dependencies: EthernetInterface NTPClient iothub_amqp_transport iothub_client mbed-rtos mbed azure_c_shared_utility serializer wolfSSL azure_uamqp_c
This sample showcases the usage of Azure IoT client libraries with the AMQP transport for sending/receiving raw messages from an IoT Hub.
Diff: simplesample_amqp.c
- Revision:
- 90:3bd0463ca623
- Parent:
- 79:eb8a0114edde
--- a/simplesample_amqp.c Thu Jul 12 18:12:35 2018 -0700 +++ b/simplesample_amqp.c Tue Sep 11 11:17:04 2018 -0700 @@ -1,6 +1,11 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +// +// IMPORTANT: Please read and understand serializer limitations and alternatives as +// described ../../readme.md before beginning to use the serializer. +// + #include <stdlib.h> #include <stdio.h> @@ -161,7 +166,7 @@ float minTemperature = 20.0; float minHumidity = 60.0; - // Turn on Log + // Turn on Log bool trace = true; (void)IoTHubClient_SetOption(iotHubClientHandle, "logtrace", &trace);