How posterberg/smshandler works
smshandler is a small MQTT-to-SMS bridge: MQTT messages select a phonebook recipient, a broadcast, or a numeric destination, and the modem sends the SMS. In the reverse direction, the modem callback formats received messages and publishes them to MQTT, optionally replying to the sender. The source shows configuration loading and callback wiring; no separate broker or modem implementation is included. Evidence is limited to the README and the sampled main script.
Main entry points: smshandler.py Runtime setup · config.ini Runtime config
Components 9
Runtime setup
- Runtime config
config.ini - Runtime setup
smshandler.py - MQTT callbacks
smshandler.py
Outbound SMS
- Recipient dispatch
smshandler.py - Send SMS
smshandler.py - GSM modem
Inbound SMS
- Receive SMS
smshandler.py
Other components
- Automation user
- MQTT broker
Connections 13
- Automation user → MQTT broker: sends topic message
README.md - MQTT broker → MQTT callbacks: delivers messages
- Runtime setup → Runtime config: reads settings
smshandler.py - Runtime setup → MQTT callbacks: registers callbacks
smshandler.py - Runtime setup → GSM modem: connects modem
smshandler.py - Runtime setup → Receive SMS: registers receive callback
smshandler.py - MQTT callbacks → MQTT broker: subscribes to topics
smshandler.py - MQTT callbacks → Recipient dispatch: routes message
smshandler.py - Recipient dispatch → Send SMS: selects recipient
smshandler.py - Send SMS → GSM modem: sends SMS
smshandler.py - GSM modem → Receive SMS: delivers received SMS
smshandler.py - Receive SMS → MQTT broker: publishes received SMS
smshandler.py - Receive SMS → GSM modem: replies if enabled
smshandler.py