Program that uses the QuickStart Library to interface a SmartMesh IP mote: Connects to the default network and starts publishing a random walk value every 5 seconds.

Dependencies:   mbed millis

Fork of QSL_SimplePublish by Jon-Håkon Bøe Røli

QSL SimplePublish

SmartMesh IP QuickStart Library

Revision:
4:0285bcbbc855
Parent:
3:fb2c485306d1
Child:
5:eb02ec8b90f8
--- a/main.cpp	Wed Sep 07 10:31:13 2016 +0000
+++ b/main.cpp	Thu Sep 08 14:26:15 2016 +0000
@@ -6,10 +6,10 @@
 
 #define NETID           0       // Factory default value used if zero (1229)
 #define JOINKEY         NULL    // Factory default value used if NULL (44 55 53 54 4E 45 54 57 4F 52 4B 53 52 4F 43 4B)
-#define BANDWIDTH_MS    5000    // Not changed if zero (default base bandwidth given by manager is 9 s)
+#define BANDWIDTH_MS    0//5000    // Not changed if zero (default base bandwidth given by manager is 9 s)
 #define SRC_PORT        60000   // Default port used if zero (0xf0b8)
 #define DEST_PORT       0       // Default port used if zero (0xf0b8)
-#define DATA_PERIOD_MS  5000    // Should be longer than (or equal to) bandwidth
+#define DATA_PERIOD_MS  9000    // Should be longer than (or equal to) bandwidth
 
 // We can use debug macros from dn_debug, as stdio defaults to this serial
 Serial serialDebug(SERIAL_TX, SERIAL_RX); 
@@ -37,12 +37,6 @@
         myled = !myled;
         dn_sleep_ms(50);
     }
-    
-    for (i = 0; i < 3; i++)
-    {
-        debug("Time: %u", dn_time_ms());
-        wait(1);
-    }
 
     while(TRUE) {
         if (dn_qsl_isConnected())