![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
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:
- 16:15f02cc1f940
- Parent:
- 9:db94158204f8
- Child:
- 17:a6f7340182f9
--- a/simplesample_mqtt.c Thu Jun 23 00:00:34 2016 +0000 +++ b/simplesample_mqtt.c Fri Jul 01 10:45:25 2016 -0700 @@ -11,11 +11,11 @@ Simply changing the using the convenience layer (functions not having _LL) and removing calls to _DoWork will yield the same results. */ +#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" -#include "azure_c_shared_utility/threadapi.h" -#include "azure_c_shared_utility/platform.h" #ifdef MBED_BUILD_TIMESTAMP #include "certs.h" #endif // MBED_BUILD_TIMESTAMP @@ -38,7 +38,6 @@ END_NAMESPACE(WeatherStation); -DEFINE_ENUM_STRINGS(IOTHUB_CLIENT_CONFIRMATION_RESULT, IOTHUB_CLIENT_CONFIRMATION_RESULT_VALUES) EXECUTE_COMMAND_RESULT TurnFanOn(ContosoAnemometer* device) {