Thanh Nguyen
/
Alarm3Sensors_240220
no
Diff: examples/src/class_c_example.cpp
- Revision:
- 31:b1d5811e3d5d
- Parent:
- 30:2f5ae37e6c47
diff -r 2f5ae37e6c47 -r b1d5811e3d5d examples/src/class_c_example.cpp --- a/examples/src/class_c_example.cpp Mon Apr 30 14:46:28 2018 -0500 +++ b/examples/src/class_c_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 = 1; static bool adr = true; @@ -100,8 +100,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 the Dot for class C operation // the Dot must also be configured on the gateway for class C