Skip to content

Commit

Permalink
MQTT return false on no server configured
Browse files Browse the repository at this point in the history
  • Loading branch information
bohdan-s committed Mar 10, 2022
1 parent bbdea6f commit 9aca239
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions SunGather/exports/mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def publish(self, inverter):
logging.warning(f'MQTT: Server Disconnected; {self.mqtt_queue.__len__()} messages queued, will automatically attempt to reconnect')
except Exception as err:
logging.warning(f'MQTT: Server Error; Server not configured')
return False
# qos=0 is set, so no acknowledgment is sent, rending this check useless
#elif self.mqtt_queue.__len__() > 10:
# logging.warning(f'MQTT: {self.mqtt_queue.__len__()} messages queued, this may be due to a MQTT server issue')
Expand Down

0 comments on commit 9aca239

Please sign in to comment.