 #define PIN_NET_STATUS 8
 #define PIN_PLUG_CONTROL 9
 
+#if 0
 const char *g_appkey = "56a0a88c4407a3cd028ac2fe";
 const char *g_topic = "office";
 const char *g_devid = "plug_plc";
+#else
+const char *g_appkey = "5697113d4407a3cd028abead";
+const char *g_topic = "yunba_smart_plug";
+const char *g_devid = "plc_0";
+#endif
 
 bool g_net_status = false;
 char g_url[32];

  return false;
}

void mqtt_init() {

}

void check_connect() {
  if (millis() - g_last_check_ms > 2000) {
    bool st = g_mqtt_client->connected();


void extMessageReceived(EXTED_CMD cmd, int status, String payload, unsigned int length) {
  Serial.println("em");
  Serial.println(cmd);
}

void init_ethernet() {
  uint8_t mac[] = {0xb0, 0x5a, 0xda, 0x3a, 0x2e, 0x8f};

  Serial.println("ie.."); // init ethernet
  while (!Ethernet.begin(mac)) {
