  * 
  * #define RADIO_APPEUI "40B3D17ED00301A6"
  * #define RADIO_APPKEY "F23C56EE13304963B8C2BF6283448298"
+ * 
+ * Register your application in the dashboard of TTN at
+ * https://staging.thethingsnetwork.org/applications
  * 
  */
 #include "radiokeys.h"

}

void join_TTN() {
  //OTAA: initOTAA(String AppEUI, String AppKey);
  Serial.println("Joining with EUI ");
  Serial.print(RADIO_APPEUI);
  Serial.print(" and app key ");
  Serial.println(RADIO_APPEUI);
  
  digitalWrite(LED_PIN, HIGH);
  bool join_result = myLora.initOTAA(RADIO_APPEUI, RADIO_APPKEY);

  while(!join_result) {
    Serial.println("Join failed. Retry in one minute. Are your keys correct, and do you have TTN coverage?");

    for (int i=0; i<60; i++) {
      digitalWrite(LED_PIN, LOW);
      delay(500); //delay a minute before retry
      digitalWrite(LED_PIN, HIGH);
      delay(500); //delay a minute before retry
    }
    join_result = myLora.init();
  }

rn2483 myLora(mySerial);

// the setup routine runs once when you press reset:
void setup_radio()  {
  initialize_radio();

#if defined(REGISTERFIRST)
