Skip to content

Commit

Permalink
update from raspberrypi3
Browse files Browse the repository at this point in the history
  • Loading branch information
molpie committed Jun 13, 2024
1 parent 1baf7be commit 4bd59c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.11-alpine3.18
FROM python:3.12-alpine3.19

RUN apk add --no-cache gammu-dev tzdata

Expand Down
4 changes: 3 additions & 1 deletion sms2mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,9 @@ def shutdown(signum=None, frame=None):

logging.info('Gammu initialized')

client = mqtt.Client(mqttclientid)
# https://stackoverflow.com/a/77985329
# client = mqtt.Client(mqttclientid)
client = mqtt.Client(mqtt.CallbackAPIVersion.VERSION1, mqttclientid)
client.username_pw_set(mqttuser, mqttpassword)
client.on_connect = on_mqtt_connect
client.on_disconnect = on_mqtt_disconnect
Expand Down

0 comments on commit 4bd59c1

Please sign in to comment.