Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restrict MQTT JSON downlink messages #3141

Merged
merged 3 commits into from
Jan 29, 2024
Merged

Conversation

GUVWAF
Copy link
Member

@GUVWAF GUVWAF commented Jan 28, 2024

Currently anyone on an MQTT server can format a JSON message to instruct all nodes with JSON enabled to send out a text or position packet as coming from that node.
With these changes, this is only allowed when the channel is called "mqtt", and the "from" field should be set to the node number of the transmitter (such that only one node transmits).

Also prevented a crash when you didn't specify "altitude" or "time" on a "sendposition" packet.

Furthermore, you can now specify a destination by setting the "to" field to the node number of the receiver.

TODO: documentation needs to reflect these new requirements.

Channel needs to be named "mqtt"
"from" field should be set to the node number of the transmitter
thebentern added a commit to meshtastic/artifacts that referenced this pull request Jan 28, 2024
thebentern added a commit to meshtastic/artifacts that referenced this pull request Jan 29, 2024
@thebentern thebentern merged commit af52dce into meshtastic:master Jan 29, 2024
59 checks passed
@GUVWAF GUVWAF deleted the jsonDownlink branch February 18, 2024 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants