     }
 
     if (!st) {
+      reset();
 //      digitalWrite(PIN_NET_STATUS, LOW);
       delete g_mqtt_client;
       delete g_net_client;

void simple_send_recv(uint8_t *buf, uint16_t *len, const char *host, uint16_t port) {
  EthernetClient net_client;

  while (0 == net_client.connect(host, port)) {
    Serial.println("cs"); // connect server
    delay(1000);
  }
  delay(100);


void connect_yunba() {
  Serial.println("cn.."); // connecting

  g_retry_cnt = 0;
  while (!g_mqtt_client->connect(g_client_id, g_username, g_password)) {
    Serial.println("..");
    delay(100);
    retry_or_reset(5);
  }

  g_last_check_ms = millis();
