   if(frame) {
     aJson.addStringToObject(frame, "devicename", "TI-CC3200");
     aJson.addStringToObject(frame, "uuid", uuid);
-    aJson.addStringToObject(frame, "mac", mac_string.c_str());
+    aJson.addStringToObject(frame, "mac", mac_string);
     aJson.addStringToObject(frame, "component", "cc3200button");
     aJson.addStringToObject(frame, "command","buttonread");
     aJson.addBooleanToObject(frame, "button1", false);

//access point should only work for b and g
char ssid[] = "nsynapse";
char password[] = "elec6887";
const char* uuid = "61ba1b0e47e34a98abb4b1d1bae10960";
WiFiServer server(8000);
WiFiUDP Udp;
byte mac[6];
String mac_string;


int push1_state = LOW;

  }
  
  WiFi.macAddress(mac);
  sprintf(mac_string,"%02x:%02x:%02x:%02x:%02x:%02x",mac[0],mac[1],mac[2],mac[3],mac[4],mac[5]);
  
  printWifiStatus();

