   String cmd = root["cmd"];
   if (cmd == "unlock") {
     unlock();
-  }
-}
-
-void handle_lock() {
+  } else if (cmd == "report") {
+    g_need_report = true;
+  } else if (cmd == "buzzer") {
+    buzzer(1000);
+  }
+}
+
+static void handle_lock() {
   switch (g_lock_status) {
     case LOCK_UNLOCKING:
       if (!lock_step_on()) {


static inline void stop_motor() {
  digitalWrite(PIN_MOTOR, HIGH);
}

static inline bool lock_status_on() {

  }
}

static void handle_report() {
  if (!g_need_report) {
    return;
  }
