Example for connecting to Cayenne using the WIZnetInterface library.

Dependencies:   Cayenne-MQTT-mbed WIZnetInterface mbed

Revision:
8:32492b844df9
Parent:
5:33c54ca4f666
--- a/main.cpp	Wed Nov 09 17:18:08 2016 +0000
+++ b/main.cpp	Fri Nov 11 18:27:52 2016 +0000
@@ -123,6 +123,7 @@
 */
 void loop(void)
 {
+    // Start the countdown timer for publishing data every 5 seconds. Change the timeout parameter to publish at a different interval.
     MQTTTimer timer(5000);
 
     while (true) {
@@ -152,6 +153,7 @@
             if ((error = mqttClient.publishData(DATA_TOPIC, 2, TYPE_BAROMETRIC_PRESSURE, UNIT_HECTOPASCAL, 800)) != CAYENNE_SUCCESS) {
                 printf("Publish barometric pressure failed, error: %d\n", error);
             }
+            // Restart the countdown timer for publishing data every 5 seconds. Change the timeout parameter to publish at a different interval.
             timer.countdown_ms(5000);
         }
     }