Basic xdot code to check how many memory is available for user APP after initializing libxdot lorawan stack

Revision:
31:b1d5811e3d5d
Parent:
30:2f5ae37e6c47
Child:
33:15ea8f985c54
diff -r 2f5ae37e6c47 -r b1d5811e3d5d examples/src/manual_example.cpp
--- a/examples/src/manual_example.cpp	Mon Apr 30 14:46:28 2018 -0500
+++ b/examples/src/manual_example.cpp	Thu Aug 23 15:40:00 2018 -0500
@@ -24,7 +24,7 @@
 static uint8_t network_session_key[] = { 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04 };
 static uint8_t data_session_key[] = { 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04 };
 static uint8_t frequency_sub_band = 6;
-static bool public_network = true;
+static lora::NetworkType network_type = lora::PUBLIC_LORAWAN;
 static uint8_t join_delay = 5;
 static uint8_t ack = 1;
 static bool adr = true;
@@ -111,7 +111,7 @@
         //      lora-query -a 01020304 A 0102030401020304 <your Dot's device ID> 01020304010203040102030401020304 01020304010203040102030401020304
         //   * if you change the network address, network session key, or data session key, make sure you update them on the gateway
         // to provision your Dot with a 3rd party gateway, see the gateway or network provider documentation
-        update_manual_config(network_address, network_session_key, data_session_key, frequency_sub_band, public_network, ack);
+        update_manual_config(network_address, network_session_key, data_session_key, frequency_sub_band, network_type, ack);
 
         // enable or disable Adaptive Data Rate
         dot->setAdr(adr);