   if (millis() - g_check_net_ms > 20000) {
     if (!g_mqtt_client.connected()) {
       Serial.println("mqtt connection failed, reset gprs");
+      LGPS.powerOff();
+      sync_buzzer(2000);
       g_status = STATUS_INIT_GPRS;
     } else {
       Serial.println("mqtt connection is ok");

static STATUS g_status = STATUS_INVALID;
static LOCK g_lock_status = LOCK_LOCKED;
static int g_lock_unlock_step = 0;

static const char *g_gprs_apn = "3gnet";
static const char *g_gprs_username = "";

          g_need_report = true;
          g_lock_status = LOCK_UNLOCKED;
          buzzer(200);
          g_unlocked_ms = millis();
          Serial.println("unlocked");
        }
      }
