Skip to content

Commit

Permalink
Added more MQTT "housekeeping"
Browse files Browse the repository at this point in the history
  • Loading branch information
fredlcore committed Dec 6, 2024
1 parent 0818afb commit feb598a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions BSB_LAN/BSB_LAN.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3873,6 +3873,10 @@ void query(float line) { // line (ProgNr)
if (bus->getBusType() != BUS_PPS) { // bus type is not PPS
retry=QUERY_RETRIES;
while (retry) {
if (mqtt_broker_addr[0] && (LoggingMode & CF_LOGMODE_MQTT)) { // Do MQTT housekeeping here in case delays occur...
mqtt_connect(); //Luposoft, connect to mqtt
MQTTPubSubClient->loop(); //Luposoft: listen to incoming messages
}
if (bus->Send(query_type, c, msg, tx_msg) == BUS_OK) {
// Decode the xmit telegram and send it to the PC serial interface
if (verbose) {
Expand Down

0 comments on commit feb598a

Please sign in to comment.