[SYS] Implement a central queue (#1767)
to avoid concurrency issues when modules or/and gateways want to publish data
This commit is contained in:
1 parent
ca9ef664ab
commit
029409c0c3
39 files changed
+491
-407
No files matched your search
@@ -257,7 +257,8 @@ void rtl_433_Callback(char* message) {
|
||||
if (SYSConfig.discovery)
|
||||
storeRTL_433Discovery(RFrtl_433_ESPdata, (char*)model.c_str(), (char*)uniqueid.c_str());
|
||||
# endif
|
||||
pub((char*)topic.c_str(), RFrtl_433_ESPdata);
|
||||
RFrtl_433_ESPdata["origin"] = (char*)topic.c_str();
|
||||
enqueueJsonObject(RFrtl_433_ESPdata);
|
||||
storeSignalValue(MQTTvalue);
|
||||
pubOled((char*)topic.c_str(), RFrtl_433_ESPdata);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user