Hi, I am almost going mad.
I have this working piece StaticJsonBuffer<1000> jsonBuffer;
//DynamicJsonBuffer jsonBuffer(200);
JsonObject& state = jsonBuffer.createObject();
state[“name”] = “ESP32_TATU.LA”;
//state[“uuid”] = “0421dc35-8448-4eb2-b7c3-2ef8c4f9d798”;
//state[“state”] = “Ambient+”;
//state[“version”] = “1.2”;
//state[“Group”] = “Sensor”;
//state[“Type”] = “Gateway”;
//state[“temperature”] = “22.5”;
//state[“humidity”] = “83”;
//state[“lux”] = “4208”;
state[“CO2”] = “465”;
state[“RSSI”] = rssi;
but this is not working, I cannot see any payload. on the workflow.
StaticJsonBuffer<1000> jsonBuffer;
//DynamicJsonBuffer jsonBuffer(200);
JsonObject& state = jsonBuffer.createObject();
state[“name”] = “ESP32_TATU.LA”;
state[“uuid”] = “0421dc35-8448-4eb2-b7c3-2ef8c4f9d798”;
//state[“state”] = “Ambient+”;
//state[“version”] = “1.2”;
//state[“Group”] = “Sensor”;
//state[“Type”] = “Gateway”;
//state[“temperature”] = “22.5”;
//state[“humidity”] = “83”;
//state[“lux”] = “4208”;
state[“CO2”] = “465”;
state[“RSSI”] = rssi;
This is my device definition
I cannot find what could it be.
Lets say I uncomment the temperature line, does not work either. Is there any constraint in names/sizes . I am lost.
Thanks a lot