   if (cmd == "unlock") {
     unlock();
   } else if (cmd == "report") {
-    g_need_report = true;
+    g_report_lock = true;
+    g_report_other = true;
   } else if (cmd == "buzzer") {
     buzzer(1000);
   }

#include <ArduinoJson.h>
#include <LGPRS.h>
#include <LGPRSClient.h>
#include <LBattery.h>
#include <LGPS.h>
#define MQTT_BUFFER_SIZE 256
#include <MQTTClient.h>

#define JSON_BUF_SIZE 256

      } else {
        if (g_lock_unlock_step == 1) {
          stop_motor();
          g_report_lock = true;
          g_lock_status = LOCK_LOCKED;
          buzzer(400);
          Serial.println("locked");
