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:
5:eb02ec8b90f8
Parent:
4:0285bcbbc855
Child:
6:bb0ffa1d5be3
--- a/main.cpp	Thu Sep 08 14:26:15 2016 +0000
+++ b/main.cpp	Thu Sep 08 14:30:33 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    0//5000    // Not changed if zero (default base bandwidth given by manager is 9 s)
+#define BANDWIDTH_MS    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  9000    // Should be longer than (or equal to) bandwidth
+#define DATA_PERIOD_MS  5000    // 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); 
@@ -26,6 +26,7 @@
     uint8_t bytesRead;
     uint8_t i;
     
+    // Set PC debug serial baudrate
     serialDebug.baud(115200);
     
     log_info("Initializing...");