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

Revision:
47:5a11f794a6ae
Parent:
38:6661a95af557
Child:
51:90c6d50af45f
--- a/simplesample_mqtt.c	Fri Aug 25 11:26:28 2017 -0700
+++ b/simplesample_mqtt.c	Mon Sep 11 09:26:40 2017 -0700
@@ -22,8 +22,12 @@
 #endif
 
 #ifdef MBED_BUILD_TIMESTAMP
+#define SET_TRUSTED_CERT_IN_SAMPLES
+#endif // MBED_BUILD_TIMESTAMP
+
+#ifdef SET_TRUSTED_CERT_IN_SAMPLES
 #include "certs.h"
-#endif // MBED_BUILD_TIMESTAMP
+#endif // SET_TRUSTED_CERT_IN_SAMPLES
 
 
 /*String containing Hostname, Device Id & Device Key in the format:             */
@@ -168,13 +172,13 @@
             }
             else
             {
-#ifdef MBED_BUILD_TIMESTAMP
+#ifdef SET_TRUSTED_CERT_IN_SAMPLES
                 // For mbed add the certificate information
                 if (IoTHubClient_LL_SetOption(iotHubClientHandle, "TrustedCerts", certificates) != IOTHUB_CLIENT_OK)
                 {
                     (void)printf("failure to set option \"TrustedCerts\"\r\n");
                 }
-#endif // MBED_BUILD_TIMESTAMP
+#endif // SET_TRUSTED_CERT_IN_SAMPLES
                 
 
                 ContosoAnemometer* myWeather = CREATE_MODEL_INSTANCE(WeatherStation, ContosoAnemometer);