[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
@@ -59,7 +59,7 @@ void GFSunInverterDataHandler(GfSun2000Data data) {
|
||||
jdata["register"] = jregister;
|
||||
# endif
|
||||
jdata["origin"] = subjectRFtoMQTT;
|
||||
enqueueJsonObject(jdata);
|
||||
handleJsonEnqueue(jdata);
|
||||
}
|
||||
|
||||
void GFSunInverterErrorHandler(int errorId, char* errorMessage) {
|
||||
@@ -72,7 +72,7 @@ void GFSunInverterErrorHandler(int errorId, char* errorMessage) {
|
||||
jdata["msg"] = errorMessage;
|
||||
jdata["id"] = errorId;
|
||||
jdata["origin"] = subjectRFtoMQTT;
|
||||
enqueueJsonObject(jdata);
|
||||
handleJsonEnqueue(jdata);
|
||||
}
|
||||
|
||||
void setupGFSunInverter() {
|
||||
|
||||
Reference in new issue
Block a user