 {
  while(DT06.available()) 
  {
-  delay(3);
-  char c = DT06.read();
-  messageReceived+= c;
- }
- if (messageReceived.length() >0) 
+  messageReceived = DT06.readString();  
+ } 
+ if (messageReceived.length() > 0) 
+ //if (messageReceived.length() >0 && messageReceived.length() < 128) 
  {  
   //console.println(messageReceived);
   /*****************************************************/

  console.println("---------------------"); 
  delay(300);
  
  DT06.write("AT+STASTATUS");  
  delay(100);
  while(DT06.available()) 
   {
    delay(3);
    char c = DT06.read();
    messageReceived+= c;
   }
  console.println(messageReceived);
  if ((messageReceived.indexOf("OK") != -1)) 
   {
    STA_OK = true;      
   }
  console.println("---------------------"); 
  if (STA_OK && TCP_OK)
  {
    console.println("READY!"); 
    console.println("---------------------"); 
    console.println(" IP | 115.29.109.104"); 
    console.println("PORT| 6524"); 
  }  

  devduino.begin();  
  devduino.attachToIntButton(buttonPressed);
  display.drawSprite(devduinoLogo, 37, 0);
  display.flush();    
  delay(2000);
  display.clear(); 

  DT06.begin(BAUDRATE); 
  //DT06.setTimeout(300);
  
  for(int i=0;i<=1;i++)
  {
