mDot - 915 MultiTech mDot UDK board DHT22 Sensor 10 KOhm resistor 330Ohm resistor, standard light dependent resistor and a sparkfun soil moisture sensor

Dependencies:   DHT22 libmDot-mbed5

Fork of mDot_LoRa_Connect_ABPA_DHT22_sleep by Brendan Kelly

Revision:
9:7f7194b5b4e3
Parent:
8:206e0563e1a1
Child:
10:02615da7a9fe
--- a/main.cpp	Mon Aug 07 07:21:45 2017 +0000
+++ b/main.cpp	Mon Aug 07 07:33:20 2017 +0000
@@ -13,15 +13,18 @@
 static uint8_t config_network_dskey[] = { 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04 };
 static uint8_t config_frequency_sub_band = 1;
 
+Serial pc(USBTX, USBRX);
+
+
+
 int main() {
+    pc.baud(9600);
     int32_t ret;
     std::vector<uint8_t> data;
     std::string data_str = "hello!";
     
-    // use US915 plan
-    lora::ChannelPlan* plan = new lora::ChannelPlan_US915();
-    // use EU868 plan
-    // lora::ChannelPlan* plan = new lora::ChannelPlan_EU868();
+    // use AU915 plan
+    lora::ChannelPlan* plan = new lora::ChannelPlan_AU915();
     assert(plan);
     // get a mDot handle
     mDot* dot = mDot::getInstance(plan);
@@ -128,5 +131,5 @@
         osDelay(std::max((uint32_t)5000, (uint32_t)dot->getNextTxMs()));
     }
 
-    return 0;
+    return 0; //unreachable
 }