arm studio build

Dependencies:   libxDot-mbed5

Revision:
14:fc836a5a5d2f
Parent:
13:1f3a8d0be511
Child:
17:74d60177c6b6
--- a/src/wbit_util.cpp	Thu Jan 17 20:17:31 2019 +0000
+++ b/src/wbit_util.cpp	Fri Jan 18 18:15:29 2019 +0000
@@ -15,9 +15,9 @@
 uint8_t key_AppKey[] = { 0x0F, 0xF9, 0xA2, 0x90, 0x2E, 0xAA, 0x6B, 0x8C, 0x6A, 0x4E, 0xFD, 0x67, 0xF9, 0xA6, 0xF3, 0xD3 };   ////OTAA appkey    => loriot "Appkey" -> common to all nodes    
 
 //ADP keys: for xdot spoofer eui ---> need to be uploaded from proc, using EUI: #spoofer (EUI 00-80-00-00-04-00-FF-FF) 
-static uint8_t network_address[] =  {0x01,0x59,0xE2,0xC7};
-static uint8_t network_session_key[] = {0xBA, 0xEF, 0x4D, 0xA3, 0x66, 0xD1, 0x85, 0xDE, 0xB1, 0xCD, 0x79, 0x15, 0xC7, 0xEB, 0x72, 0x35};
-static uint8_t data_session_key[] = {0xF9,0x13,0x94,0x0D,0x12,0x95,0x96,0x5A,0xF4,0x34,0xBB,0xA9,0x8E,0x2A,0x83,0x10};
+//static uint8_t network_address[] =  {0x01,0x59,0xE2,0xC7};
+//static uint8_t network_session_key[] = {0xBA, 0xEF, 0x4D, 0xA3, 0x66, 0xD1, 0x85, 0xDE, 0xB1, 0xCD, 0x79, 0x15, 0xC7, 0xEB, 0x72, 0x35};
+//static uint8_t data_session_key[] = {0xF9,0x13,0x94,0x0D,0x12,0x95,0x96,0x5A,0xF4,0x34,0xBB,0xA9,0x8E,0x2A,0x83,0x10};
 
 
 //============================================================================
@@ -215,12 +215,12 @@
 }    
 
 bool join_network_wbit(uint8_t nmbAttempts) {
-    //int32_t j_attempts = 0;
     j_attempts = 0;
     int32_t ret = mDot::MDOT_ERROR;
     
 // attempt to join the network
-    while (ret != mDot::MDOT_OK) {
+    while (ret != mDot::MDOT_OK)
+    {
         j_attempts++;
         logInfo("attempt %d to join network",j_attempts);
         ret = dot->joinNetwork();