 static unsigned long g_last_report_ms = 0;
 
 static unsigned long g_check_net_ms = 0;
+
+static unsigned long g_last_led_ms = 0;
+static long g_led_interval = 1000;
+static int g_led_state = LOW;
+static int g_led_fast = 0;
 
 static bool get_ip_port(const char *url, char *ip, uint16_t *port) {
   char *p = strstr(url, "tcp://");

  Serial.println("publish: " + json);
  g_mqtt_client.publish(g_report_topic, json);

  g_need_report = false;
}


      check_need_report();
      handle_report();
      check_network();
      handle_led();
      break;
    default:
      Serial.println("unknown status: " + g_status);
