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:
18:4e02a7a01625
Parent:
17:17963e6bd07d
Child:
19:5b812e1b8f3d
--- a/main.cpp	Sat Sep 17 18:03:33 2016 +0000
+++ b/main.cpp	Wed Sep 28 16:23:09 2016 +0000
@@ -3,8 +3,7 @@
 #include "CommandTerminal.h"
 #include "ATSerial.h"
 #include "ATSerialFlowControl.h"
-#include "CustomChannelPlan_EU868.h"
-#include "CustomChannelPlan_US915.h"
+#include "ChannelPlans.h"
 
 #define SERIAL_BUFFER_SIZE 512
 
@@ -17,8 +16,8 @@
     debug.baud(115200);
 
     mDot* dot = mDot::getInstance();
-
-    lora::CustomChannelPlan_US915* plan = new lora::CustomChannelPlan_US915(*dot->getRadio(), *dot->getSettings());
+    
+    lora::ChannelPlan* plan = new lora::CustomChannelPlan_AS923(*dot->getRadio(), *dot->getSettings());
     dot->setChannelPlan(plan);
 
     // Seed the RNG