firmware
firmware copied to clipboard
Ignore MQTT by default and then don't transmit downlink over LoRa
This implements what has been discussed up till now in https://github.com/meshtastic/rfcs/pull/9 and thus needs to be approved first. The "ignore MQTT" LoRa setting will be enabled by default and this now also means if you have MQTT downlink enabled, it doesn't transmit these packets over LoRa. MQTT-only will work as before and if you also want your mesh to receive the downlinks, you have to explicitly disable "ignore MQTT".
Tested both that MQTT downlink works and also ignoring MQTT works as before.
Wonderful! I just submitted a feature request with this exact suggestion, and tagged your PR as a probably solution to get it some attention.
with this change, if disabled on the radio connected to the broker, after an mqtt packet makes it's hop from the broker to the radio and gets transmitted to the mesh, will it then continue to hop just like a normal packet, or will it continue relaying on other radios if they have this enabled? Or is it "flagged" in some way as an mqtt packet and wont be relayed?
Is this still needed after dontMQTTMebro?
This is the other way around: packets from MQTT (downlink) can be controlled to not be transmitted over LoRa. Just like the public MQTT server is currently doing with zero-hopping, but then enforced on the firmware, such that it also holds for private MQTT servers.