Skip to content

Commit a960f20

Browse files
committed
v1.4.1 fix mqttPort not passed correctly
1 parent cfb16c6 commit a960f20

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sms2mqtt.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def get_signal_info():
143143
if __name__ == "__main__":
144144
logging.basicConfig( format="%(asctime)s: %(message)s", level=logging.INFO, datefmt="%H:%M:%S")
145145

146-
versionnumber='1.4.0'
146+
versionnumber='1.4.1'
147147

148148
logging.info(f'===== sms2mqtt v{versionnumber} =====')
149149

@@ -186,13 +186,13 @@ def get_signal_info():
186186

187187
logging.info('Gammu initialized')
188188

189-
client = mqtt.Client(mqttclientid, mqttport)
189+
client = mqtt.Client(mqttclientid)
190190
client.username_pw_set(mqttuser, mqttpassword)
191191
client.on_connect = on_mqtt_connect
192192
client.on_disconnect = on_mqtt_disconnect
193193
client.on_message = on_mqtt_message
194194
client.will_set(f"{mqttprefix}/connected", "0", 0, True)
195-
client.connect(mqtthost)
195+
client.connect(mqtthost, mqttport)
196196

197197
run = True
198198
while run:

0 commit comments

Comments
 (0)