meshtastic / firmware

Meshtastic device firmware
https://meshtastic.org
GNU General Public License v3.0
3.36k stars 821 forks source link

[Feature Request]: Send radio region/frequency to MQTT #3281

Closed tobymurray closed 7 months ago

tobymurray commented 7 months ago

Platform

NRF52, ESP32

Description

Include the region a given device is configured to use in the telemetry sent to MQTT.

One of the useful facets of the MQTT-driven maps is discovery of active neighbors. In environments where multiple frequencies are available, it would be helpful to include what frequencies those neighbors are operating on. This is almost exclusively for new users/testing/getting set up, but feels like a reasonable thing to be sent to the MQTT broker.

Asked here: https://meshtastic.discourse.group/t/is-radio-frequency-sent-over-mqtt/9985

garthvh commented 7 months ago

The new default topics include region, which also has frequency if there are multiple

tobymurray commented 7 months ago

Fair - from an integration perspective it's slightly nicer to integrate with the RegionCode enumeration in the protobuf. Can definitely make use of the default topics for devices with newer firmware that haven't changed the topics though!