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:
28:227d7508a1e2
Parent:
27:8add07d6b6c6
Child:
29:15b59b827ac7
--- a/main.cpp	Thu Jan 26 14:26:23 2017 +0000
+++ b/main.cpp	Wed Feb 08 16:32:05 2017 +0000
@@ -12,7 +12,7 @@
 #ifndef UNIT_TEST
 
 #ifndef CHANNEL_PLAN
-#define CHANNEL_PLAN CP_KR920
+#define CHANNEL_PLAN CP_AS923
 #endif
 
 int main()
@@ -32,8 +32,11 @@
     lora::ChannelPlan* plan = new lora::CustomChannelPlan_EU868(*dot->getRadio(), *dot->getSettings());
 #elif CHANNEL_PLAN == CP_KR920
     lora::ChannelPlan* plan = new lora::CustomChannelPlan_KR920(*dot->getRadio(), *dot->getSettings());
+#elif CHANNEL_PLAN == CP_IN865
+    lora::ChannelPlan* plan = new lora::CustomChannelPlan_IN865(*dot->getRadio(), *dot->getSettings());
 #endif
 
+
     dot->setChannelPlan(plan);
 
     // Seed the RNG
@@ -62,8 +65,6 @@
 
     term.init();
 
-
-
     term.start();
 }