   root["devid"] = g_devid;
 
   JsonArray& st = root.createNestedArray("status");
-  
+
+  st.add(g_on_off);
+  st.add(g_mode);
+  st.add(g_fan);
+  st.add(g_set_temp);
+  st.add(g_room_temp);
+
   g_body_len = root.printTo((char *)g_buf + HEADER_LEN, BUF_LEN - HEADER_LEN);
 
   send_msg();


  if (g_need_report) {
    print_status();
//    report_status();
    g_need_report = 0;
  }


#define PIN_ON_OFF 9
#define PIN_MODE 10
#define PIN_FAN 11
#define PIN_INC 12
#define PIN_DEC 13

#define MIN_ANALOG_V 96
#define MAX_ANALOG_V 928

#define MAX_STABLE_CNT 32 /* 去除波动，MAX_STABLE_CNT 次数据不变后才上报状态 */

#define SIM_BTN_DELAY 32

const char *g_devid = "temp_ctrl_0";

uint8_t g_header[HEADER_LEN];
uint8_t g_buf[BUF_LEN];
