Refactor MQTT: only publish on LoRa Tx if packet is from us and on Rx if not (#3245)

Such that direct message to MQTT node gets published and we get rid of always rebroadcasting when MQTT is enabled

Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
This commit is contained in:
GUVWAF
2024-02-21 13:00:14 -06:00
committed by GitHub
co-authored by GitHub Ben Meadors
parent 9784758c7b
commit eb8a12e5a2
4 changed files with 18 additions and 9 deletions
+2 -1
View File
@@ -50,7 +50,8 @@ class MQTT : private concurrency::OSThread
/**
* Publish a packet on the global MQTT server.
* This hook must be called **after** the packet is encrypted (including the channel being changed to a hash).
* @param mp the encrypted packet to publish
* @param mp_decoded the decrypted packet to publish
* @param chIndex the index of the channel for this message
*
* Note: for messages we are forwarding on the mesh that we can't find the channel for (because we don't have the keys), we