Compare commits

2 Commits

Author SHA1 Message Date
ahinsing 3f92cc41a1 Removed file 2019-04-16 12:00:12 +02:00
ahinsing 66a23299f3 Reorder 2019-04-16 11:59:34 +02:00
+1 -2
View File
@@ -133,8 +133,6 @@ int main(void) {
uint16_t key; uint16_t key;
uint16_t readsize; uint16_t readsize;
connect.connect_type = LORAWAN_CONNECTION_OTAA;
// NVStore is a sigleton, get its instance // NVStore is a sigleton, get its instance
NVStore &nvstore = NVStore::get_instance(); NVStore &nvstore = NVStore::get_instance();
@@ -164,6 +162,7 @@ int main(void) {
return -1; return -1;
} }
connect.connect_type = LORAWAN_CONNECTION_OTAA;
connect.connection_u.otaa.app_eui = const_cast<uint8_t *>(app_eui); connect.connection_u.otaa.app_eui = const_cast<uint8_t *>(app_eui);
connect.connection_u.otaa.dev_eui = const_cast<uint8_t *>(dev_eui); connect.connection_u.otaa.dev_eui = const_cast<uint8_t *>(dev_eui);
connect.connection_u.otaa.app_key = const_cast<uint8_t *>(app_key); connect.connection_u.otaa.app_key = const_cast<uint8_t *>(app_key);