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

Periodic reporting of device information to a map via MQTT #3365

Merged
merged 6 commits into from
Mar 10, 2024

Conversation

GUVWAF
Copy link
Member

@GUVWAF GUVWAF commented Mar 10, 2024

This adds an easy way to periodically report all kinds of information about the device (long/short name, position with precision, firmware version, LoRa settings, number of local online nodes, etc.) to a map via MQTT only, regardless of any channel and is thus unencrypted. It will be published to a new /2/map/ topic as a protobuf in a ServiceEnvelope with MeshPacket portnum MAP_REPORT_APP and can be decoded using the new MapReport message.
If map reporting is enabled, the publish interval (default is 15 min.) and position precision (default is full precision) can be configured.

Implements #3336.

@GUVWAF GUVWAF requested review from caveman99 and thebentern March 10, 2024 14:06
Copy link
Member

@caveman99 caveman99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated protos for your convenience :-) Please see comment.

src/mqtt/MQTT.cpp Show resolved Hide resolved
@caveman99 caveman99 marked this pull request as ready for review March 10, 2024 14:44
@caveman99 caveman99 merged commit eb372c1 into meshtastic:master Mar 10, 2024
3 of 65 checks passed
@GUVWAF GUVWAF deleted the mapReport branch September 28, 2024 17:28
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