Connecting to gateway and sending packets with a MultiTech mDot.

Dependencies:   libmDot mbed-rtos mbed

Fork of libmDot_sample by MultiTech

Revision:
6:f0b6fea36e28
Parent:
5:e9d78a9bafc5
--- a/main.cpp	Mon Apr 04 18:44:38 2016 +0000
+++ b/main.cpp	Tue Apr 12 23:44:25 2016 +0000
@@ -38,9 +38,10 @@
     // if using a MultiTech Conduit gateway, use the same sub band as your Conduit (1-8) - the mDot will use the 8 channels in that sub band
     // if using a gateway that supports all 64 channels, use sub band 0 - the mDot will use all 64 channels
     
-    if ((ret = dot->setPublicNetwork(true)) != mDot::MDOT_OK) {
-        logError("failed to set public network %d:%s", ret, mDot::getReturnCodeString(ret).c_str());
-    }
+//    logInfo("setting to public network");
+//    if ((ret = dot->setPublicNetwork(true)) != mDot::MDOT_OK) {
+//        logError("failed to set public network %d:%s", ret, mDot::getReturnCodeString(ret).c_str());
+//    }
 
     logInfo("setting frequency sub band");    
     if ((ret = dot->setFrequencySubBand(config_frequency_sub_band)) != mDot::MDOT_OK) {