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:
- 79:eb8a0114edde
- Parent:
- 74:b684f612f838
- Child:
- 90:3bd0463ca623
--- a/simplesample_amqp.c Fri Nov 17 14:01:38 2017 -0800 +++ b/simplesample_amqp.c Fri Dec 15 14:13:19 2017 -0800 @@ -6,9 +6,6 @@ #include <stdio.h> #include <stdint.h> -#ifdef ARDUINO -#include "AzureIoTHub.h" -#else #include "serializer.h" #include "azure_c_shared_utility/threadapi.h" #include "azure_c_shared_utility/sastoken.h" @@ -16,7 +13,6 @@ #include "iothub_client.h" #include "iothubtransportamqp.h" #include "iothub_client_ll.h" -#endif #ifdef MBED_BUILD_TIMESTAMP #define SET_TRUSTED_CERT_IN_SAMPLES