 
 static int cfg_load_sync(struct neurite_data_s *nd)
 {
+	StaticJsonBuffer<NEURITE_CFG_SIZE> json_buf;
 	log_dbg("in\n\r");
 	if (!cfg_load(nd)) {
 		log_err("load cfg failed\n\r");

static ESP8266WiFiMulti WiFiMulti;
#endif
static char cfg_buf[NEURITE_CFG_SIZE];
StaticJsonBuffer<NEURITE_CFG_SIZE> json_buf;

const char STR_READY[] PROGMEM = "neurite ready";


		log_err("load cfg failed\n\r");
		return false;
	}
	StaticJsonBuffer<NEURITE_CFG_SIZE> json_buf;
	JsonObject& json = json_buf.parseObject(cfg_buf);
	if (!json.success()) {
		log_err("parse cfg failed\n\r");
