puterboy
puterboy
I can try increasing the `ReceiverTask_Stack` but as per the above mention, it seems like the change in `ZgatewayRTL_433.ino` that fixes https://github.com/1technophile/OpenMQTTGateway/issues/2012, causes these sporadic spikes to occur. Specifically, if...
It does indeed fix data corruption but somehow corrupts discovery topics... Not sure why yet. I'm thinking problem may be more fundamental... On August 25, 2024 4:30:03 PM EDT, Florian...
I subscribed to the topics and the nonsensical temperature or battery spikes correspond to corrupted JSON data. For example: ``` home/OMG_lilygo_rtl_433_ESP/RTL_433toMQTT/LaCrosse-TX141THBv2/0/216 {"model":"Nexus-TH","battery_ok":216,"tery_ok":0,"temperature_C":1,"_C":2.8,"otocol":10,"xus, FreeTec NC-7345, NX-3980, Solight TE82S, TFA 30.3209 temperature/humidity...
I actually think that is the **root** cause of both the corruption of discovery topics and the sporadic corruption of the MQTT topic messages -- they both seem to occur...
BTW, happy to jump on a call or chat to work on this together as I am coming up to the limits of my abilities here...
I'm stumped here as I can't seem to find a reason why queue would corrupt or overflow: 1. the JSON doc buffer is allocated JSON_MSG_BUFFER bytes which for an esp32...
Indeed it is a concurrency issue. I was able to get rid of discovery config data corruption by wrapping mqtt->publish with a Mutex semaphore within the low level pubMQTT routine....
Unfortunately, I still get MQTT topic corruption if I use the JsonEnqueue method -- not sure why. So I will submit the PR of just the Mutex wrapper, keeping your...
I was hoping that the 2 PRs I created to add protection to mqtt->publish/mqtt->loop (https://github.com/1technophile/OpenMQTTGateway/pull/2024) and to emptyQueue (https://github.com/1technophile/OpenMQTTGateway/pull/2025) would solve the corruption problem when jsonQueue is used for MQTT...
Maybe I am missing something, but I don't see how increasing `rtl_433_Decoder_Stack` will help. The problem seems to be limited to *how* the JSON string is published. - When I...