   delay(500);
   digitalWrite(12, HIGH);
   Serial.println("done.");
-  
-  String response = "";
-  while (response=="")
-  {
-    delay(1000);
-    Serial.print("autobaud...");
-    loraSerial.write((byte)0x00);
-    loraSerial.write(0x55);
-    loraSerial.println();
-    loraSerial.println("sys get ver");
-    response = loraSerial.readStringUntil('\n');
-    Serial.print(response);
-  }
+
+//  ttn.autobaud();
+//  ttn.init()
   Serial.println("..done.");
 }
 
-
 // the loop routine runs over and over again forever:
 void send_to_TTN(String data)  {
-  ttn.sendString(data);
+//  ttn.sendBytes(data, data.length);
   delay(20000);
 }
 


  digitalWrite(LED_PIN, HIGH);
  //the device will attempt a join every second till the join is successfull
  while(!ttn.join(appEui, appKey)){
      delay(10000);
  }
  digitalWrite(LED_PIN, LOW);


#include <SoftwareSerial.h>

#define RADIO_RESET_PIN 12
