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:
- 42:6bb5884a0648
- Parent:
- 35:862d7bc6755c
- Child:
- 43:f179aa2ce96f
--- a/simplesample_amqp.c Wed Jun 22 23:54:16 2016 +0000 +++ b/simplesample_amqp.c Fri Jul 01 10:44:47 2016 -0700 @@ -9,10 +9,10 @@ #include "serializer.h" #include "azure_c_shared_utility/threadapi.h" #include "azure_c_shared_utility/sastoken.h" +#include "azure_c_shared_utility/platform.h" #include "iothub_client.h" #include "iothubtransportamqp.h" #include "iothub_client_ll.h" -#include "azure_c_shared_utility/platform.h" #ifdef MBED_BUILD_TIMESTAMP #include "certs.h" @@ -35,7 +35,6 @@ END_NAMESPACE(WeatherStation); -DEFINE_ENUM_STRINGS(IOTHUB_CLIENT_CONFIRMATION_RESULT, IOTHUB_CLIENT_CONFIRMATION_RESULT_VALUES) EXECUTE_COMMAND_RESULT TurnFanOn(ContosoAnemometer* device) {