             char data = client.read();
            if(data=='}') 
            {
-             Serial.print(buffer);
              memset(buffer, 0, 1024);
            }
            else 

    delay(300);
  }
  
  printWifiStatus();
  server.begin();
  Udp.begin(DEFAULT_UDP_PORT);
  
  //device profile
  if(announce) {
    aJson.addStringToObject(announce, "devicename", "TI_cc3200_2");
    aJson.addStringToObject(announce, "componentname", "cc3200led");
    aJson.addStringToObject(announce, "protocol", "tcp");
    aJson.addNumberToObject(announce, "port", 8000);
    aJson.addStringToObject(announce, "command","auth");

#include <WiFiClient.h>
#include <aJSON.h>

#define USE_UART

#define DEFAULT_UDP_MEMBERSHIP  "225.0.0.37"
#define DEFAULT_UDP_PORT  21928

