  *  body:
  *    json data from yunba service
  */ 
+#include <ArduinoJson.h>
 
 #define HEADER_LEN 4
 #define BUF_LEN 256
 #define FLAG_CHAR 0xaa
+#define FIRST_PIN 5
+
+#define CHILD_NUM 3
 
 const char *g_appkey = "5697113d4407a3cd028abead";
 const char *g_topic = "smart_office";

  // put your setup code here, to run once:
  Serial.begin(115200);
  //Serial.setTimeout(100);
  Serial.println("setup......"); // setup
}

void loop() {

int g_step = 1; // 1: recv header, 2 recv body
uint16_t g_body_len = 0;
uint16_t g_recv_len = 0;

char g_status[CHILD_NUM];

void recv_header() {
  while (Serial.available() >= HEADER_LEN) {
