Closed MeldrumIO closed 3 years ago
Great work with incorporating the modbus decryption in to your script. Note that you just need to add an extra line in for MQTT broker authentication to work.
try: mqtt_client = mqtt.Client('pv_data') mqtt.username_pw_set(config.mqtt_username,config.mqtt_password) mqtt_client.connect(config.mqtt_server, port=config.mqtt_port) except: mqtt_client = None
Done. Also the branch update contains the new SungrowModbusTcpClient library that has recently been made available in pypi.
Merged to master.
Great work with incorporating the modbus decryption in to your script. Note that you just need to add an extra line in for MQTT broker authentication to work.
try: mqtt_client = mqtt.Client('pv_data') mqtt.username_pw_set(config.mqtt_username,config.mqtt_password) mqtt_client.connect(config.mqtt_server, port=config.mqtt_port) except: mqtt_client = None