   //configure your keys and join the network
   Serial.println("Trying to join TTN");
   bool join_result = false;
-  
+
   //ABP: initABP(String addr, String AppSKey, String NwkSKey);
   join_result = myLora.initABP("02017201", "8D7FFEF938589D95AAD928C2E2E7E48F", "AE17E567AECC8787F749A62F5541D522");
-  
+
   //OTAA: initOTAA(String AppEUI, String AppKey);
   //join_result = myLora.initOTAA("70B3D57ED00001A6", "A23C96EE13804963F8C2BD6285448198");
 

    join_result = myLora.init();
  }
  Serial.println("Successfully joined TTN");
  
}

// the loop routine runs over and over again forever:
void loop() 
{
    led_on();



    switch(myLora.txCnf("!")) //one byte, blocking function
    {
      case TX_FAIL:
        {
          Serial.println("TX unsuccessful or not acknowledged");
        }
        break;
      case TX_SUCCESS:
        {
          Serial.println("TX successful and acknowledged");
          break;
        }
      case TX_WITH_RX:
        {
          String received = myLora.getRx();
          received = myLora.base16decode(received);
          Serial.print("Received downlink: " + received);
        }
        break;
      default:
        Serial.println("Unknown response from TX function");
    }
