Skip to content

Commit

Permalink
Update ZgatewaySERIAL.ino Fix tx issues
Browse files Browse the repository at this point in the history
The serial gateway can only receive serial data and publish via mqtt, but can not convert mqtt into serial data. It is because the receiverReady is not handled correctly for the tx part. A quick work around is to set receiverReady to true. (it seems not used)
  • Loading branch information
mycprotein authored Dec 11, 2024
1 parent 1b50c8e commit 3f9ad44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/ZgatewaySERIAL.ino
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const TickType_t semaphoreTimeout = pdMS_TO_TICKS(1000); // 1 second timeout
Stream* SERIALStream = NULL;
//unsigned long msgCount = 0;

bool receiverReady = false;
bool receiverReady = true;
unsigned long lastHeartbeatReceived = 0;
unsigned long lastHeartbeatAckReceived = 0;
unsigned long lastHeartbeatSent = 0;
Expand Down Expand Up @@ -372,4 +372,4 @@ void handleHeartbeat() {
sendHeartbeatAck();
}
}
#endif
#endif

0 comments on commit 3f9ad44

Please sign in to comment.