Json payload strange behaivour [Solved]

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

Hi @Javier_Ferreyra,

I can assure you aren’t going mad. However, I think I may know the solution to your problem. It looks like your payload is pretty big. The underlying Arduino MQTT library has a size limit. You can increase it:

Let me know if this works for you!

Yep, worked right away… thanks a lot, I was going mad… thanks …