       StaticJsonBuffer<JSON_BUFSIZE> jsonBuffer;
       JsonObject& root = jsonBuffer.parseObject(p);
       if (root.success()) {
-        strcpy(url, root["c"]);
+        strcpy(g_url, root["c"]);
         return true;
       }
     }

}

void report_status() {
  String data("{\"status\":");
  data += String(g_status);
  data += String(",\"devid\":\"");
  data += String(g_devid);
  data += String("\"}");

  Serial.println(data);
  mqtt_client->publish(g_topic, data.c_str());
}

void messageReceived(String topic, String payload, char *bytes, unsigned int length) {
  StaticJsonBuffer<JSON_BUFSIZE> jsonBuffer;

  bytes[length] = 0;

  } else if (strcmp(root["cmd"], "plug_get") == 0) {
    report_status();
  }
  #endif
}

void extMessageReceived(EXTED_CMD cmd, int status, String payload, unsigned int length) {
