[SYS/BT] Semaphores and new BT Controller (#1819)
Add semaphore to the enqueue calls to avoid concurrency issues Add new BT controller to avoid scan evt timeout bug
This commit is contained in:
1 parent
5421f0e995
commit
eb5b8fa291
45 files changed
+380
-91
No files matched your search
+1
-1
@@ -67,7 +67,7 @@ void MeasureGasMQ2() {
|
||||
MQ2data["gas"] = analogRead(MQ2SENSORADCPIN);
|
||||
MQ2data["detected"] = digitalRead(MQ2SENSORDETECTPIN) == HIGH ? "false" : "true";
|
||||
MQ2data["origin"] = subjectMQ2toMQTT;
|
||||
enqueueJsonObject(MQ2data);
|
||||
handleJsonEnqueue(MQ2data);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Reference in new issue
Block a user