     join_result = myLora.init();
     digitalWrite(LED_BLUE, HIGH);
   }
+
   SerialUSB.println("Successfully joined TTN");
 
 }

/*
 * Author: JP Meijers
 * Date: 2016-09-02

    toLog = toLog + String(buffer);
  }

  SerialUSB.print("Transmit on DR");
  SerialUSB.print(dr);
  SerialUSB.print(" coordinates ");
  SerialUSB.print(sodaq_gps.getLat(), 13);
  SerialUSB.print(" ");
  SerialUSB.print(sodaq_gps.getLon(), 13);
  SerialUSB.print(" altitude ");
  SerialUSB.print(sodaq_gps.getAlt(), 1);
  SerialUSB.print(" and HDOP ");
  SerialUSB.print(sodaq_gps.getHDOP(), 2);
  SerialUSB.print(" hex ");
  SerialUSB.println(toLog);

  digitalWrite(LED_BLUE, LOW);
  myLora.txBytes(txBuffer, sizeof(txBuffer));
  digitalWrite(LED_BLUE, HIGH);

  // Cycle between datarate 0 and 5
  dr = (++dr) % 6;
  myLora.setDR(dr);
  SerialUSB.println("TX done");
}
