   }
 
   if (strcmp(root["cmd"], "plug_set") == 0) {
-      uint8_t st = root["status"];
-      set_plug_status(st);
+    uint8_t st = root["status"];
+    set_plug_status(st);
   } else if (strcmp(root["cmd"], "plug_get") == 0) {
     report_status();
   }

#define PIN_NET_STATUS 8
#define PIN_PLUG_CONTROL 9

const char *g_appkey = "56a0a88c4407a3cd028ac2fe";
const char *g_topic = "office";
const char *g_devid = "plug_plc";

bool g_net_status = false;
char g_url[32];

  return false;
}

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