Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1.8k
Add MQTT GPIO control and status topics#8955
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:develop
Are you sure you want to change the base?
Add MQTT GPIO control and status topics#8955
Conversation
Implement dedicated MQTT topics for GPIO control:- Subscribe to msh/{root}/2/gpio/{NODE_ID}/control for commands- Publish status to msh/{root}/2/gpio/{NODE_ID}/statusSupported JSON command formats:- Simple: {"pin": N, "value": V} or {"pin": N, "command": "read"}- Advanced: {"command": "write/read/watch", "gpio_mask": M, "gpio_value": V}Status response format:{"type":"gpio_status","gpio_mask":M,"gpio_value":V,"timestamp":T,"node_id":"!xxx"}The RemoteHardwareModule now publishes GPIO status to MQTT when:- GPIO write commands are executed- GPIO read responses are sent- Watched GPIOs change stateCLAassistant commentedDec 12, 2025
|
fifieldt commentedDec 12, 2025
Cool idea :) Are you in discord? It's probably worth some discussion about whether it's safe to enable this by default, or whether we need a protobuf to turn it on/off. |
Implement dedicated MQTT topics for GPIO control:
Supported JSON command formats:
Status response format:
{"type":"gpio_status","gpio_mask":M,"gpio_value":V,"timestamp":T,"node_id":"!xxx"}
The RemoteHardwareModule now publishes GPIO status to MQTT when:
🙏 Thank you for sending in a pull request, here's some tips to get started!
❌ (Please delete all these tips and replace them with your text) ❌
to say "Hey, I think this idea X should be implemented and I'm starting work on it. My general plan is Y, any feedback
is appreciated." This will allow other devs to potentially save you time by not accidentially duplicating work etc...
because it automatically follows our indentation rules and its auto reformatting will not cause spurious changes to lines.
🤝 Attestations