![](/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:
- 63:3bbdcd21171b
- Parent:
- 52:e7a6a18a9c0f
--- a/simplesample_mqtt.c Thu Jul 12 18:13:46 2018 -0700 +++ b/simplesample_mqtt.c Tue Sep 11 11:18:25 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> @@ -173,7 +178,7 @@ (void)printf("failure to set option \"TrustedCerts\"\r\n"); } #endif // SET_TRUSTED_CERT_IN_SAMPLES - + ContosoAnemometer* myWeather = CREATE_MODEL_INSTANCE(WeatherStation, ContosoAnemometer); if (myWeather == NULL)