It is possible to produce a NULL Pointer Exception (some kind of) forcing the ESP to reboot.
Removing the “id” property in the Json string to MQTTtoPilight tries to use a NULL value as source in a strcpy().
Current ZgatewayPilight.ino
DynamicJsonBuffer jb;
JsonObject& rjson = jb.parseObject(MQTTmessage);
if (rjson.success()) {
strcpy(deviceID, rjson["id"]); /* crash */
}
should read…
DynamicJsonBuffer jb;
JsonObject& rjson = jb.parseObject(MQTTmessage);
if (rjson.success() && rjson.containsKey("id")) {
strcpy(deviceID, rjson["id"]);
}