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:
- 52:e7a6a18a9c0f
- Parent:
- 51:90c6d50af45f
- Child:
- 63:3bbdcd21171b
diff -r 90c6d50af45f -r e7a6a18a9c0f simplesample_mqtt.c --- a/simplesample_mqtt.c Fri Nov 17 14:02:41 2017 -0800 +++ b/simplesample_mqtt.c Fri Dec 15 14:14:20 2017 -0800 @@ -11,15 +11,11 @@ Simply changing the using the convenience layer (functions not having _LL) and removing calls to _DoWork will yield the same results. */ -#ifdef ARDUINO -#include "AzureIoTHub.h" -#else #include "azure_c_shared_utility/threadapi.h" #include "azure_c_shared_utility/platform.h" #include "serializer.h" #include "iothub_client_ll.h" #include "iothubtransportmqtt.h" -#endif #ifdef MBED_BUILD_TIMESTAMP #define SET_TRUSTED_CERT_IN_SAMPLES