Basic xdot code to check how many memory is available for user APP after initializing libxdot lorawan stack
Diff: examples/src/auto_ota_example.cpp
- Revision:
- 31:b1d5811e3d5d
- Parent:
- 30:2f5ae37e6c47
- Child:
- 33:15ea8f985c54
diff -r 2f5ae37e6c47 -r b1d5811e3d5d examples/src/auto_ota_example.cpp --- a/examples/src/auto_ota_example.cpp Mon Apr 30 14:46:28 2018 -0500 +++ b/examples/src/auto_ota_example.cpp Thu Aug 23 15:40:00 2018 -0500 @@ -27,7 +27,7 @@ static uint8_t network_id[] = { 0x6C, 0x4E, 0xEF, 0x66, 0xF4, 0x79, 0x86, 0xA6 }; static uint8_t network_key[] = { 0x1F, 0x33, 0xA1, 0x70, 0xA5, 0xF1, 0xFD, 0xA0, 0xAB, 0x69, 0x7A, 0xAE, 0x2B, 0x95, 0x91, 0x6B }; static uint8_t frequency_sub_band = 0; -static bool public_network = true; +static lora::NetworkType network_type = lora::PUBLIC_LORAWAN; static uint8_t join_delay = 5; static uint8_t ack = 0; static bool adr = true; @@ -108,8 +108,8 @@ // only one method or the other should be used! // network ID = crc64(network name) // network KEY = cmac(network passphrase) - update_ota_config_name_phrase(network_name, network_passphrase, frequency_sub_band, public_network, ack); - //update_ota_config_id_key(network_id, network_key, frequency_sub_band, public_network, ack); + update_ota_config_name_phrase(network_name, network_passphrase, frequency_sub_band, network_type, ack); + //update_ota_config_id_key(network_id, network_key, frequency_sub_band, network_type, ack); // configure network link checks // network link checks are a good alternative to requiring the gateway to ACK every packet and should allow a single gateway to handle more Dots