MultiTech / Mbed OS mDot_AT_firmware_CUSTOM

Dependencies:   libmDot-Custom MTS-Serial

Fork of mDot_AT_firmware_CUSTOM by Jason Reiss

To change channel plans replace AS923 with AU915, EU868, KR920 or US915 on line 15

#define CHANNEL_PLAN CP_AS923

See Supported Channel Plans

Revision:
15:36db31c18231
Parent:
12:98445fa50cd3
Child:
17:17963e6bd07d
diff -r e80ace5a6834 -r 36db31c18231 main.cpp
--- a/main.cpp	Mon Aug 29 10:05:41 2016 -0500
+++ b/main.cpp	Wed Aug 31 11:57:27 2016 -0500
@@ -3,7 +3,7 @@
 #include "CommandTerminal.h"
 #include "ATSerial.h"
 #include "ATSerialFlowControl.h"
-#include "CustomChannelPlan.h"
+#include "CustomChannelPlan_EU868.h"
 
 #define SERIAL_BUFFER_SIZE 512
 
@@ -17,7 +17,7 @@
 
     mDot* dot = mDot::getInstance();
 
-    lora::CustomChannelPlan* plan = new lora::CustomChannelPlan(*dot->getRadio(), *dot->getSettings());
+    lora::CustomChannelPlan_EU868* plan = new lora::CustomChannelPlan_EU868(*dot->getRadio(), *dot->getSettings());
     dot->setChannelPlan(plan);
 
     // Seed the RNG
@@ -53,4 +53,3 @@
 
 #endif // UNIT_TEST
 
-