mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-26 22:33:24 +00:00
Additional decoded packet ignores
This commit is contained in:
parent
94e882c827
commit
f625e8c837
@ -164,6 +164,16 @@ void MQTT::onReceive(char *topic, byte *payload, size_t length)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (p->which_payload_variant == meshtastic_MeshPacket_decoded_tag) {
|
if (p->which_payload_variant == meshtastic_MeshPacket_decoded_tag) {
|
||||||
|
if (moduleConfig.mqtt.encryption_enabled) {
|
||||||
|
LOG_INFO("Ignoring decoded message on MQTT, encryption is enabled.\n");
|
||||||
|
packetPool.release(p);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (p->decoded.portnum == meshtastic_PortNum_ADMIN_APP) {
|
||||||
|
LOG_INFO("Ignoring decoded admin packet.\n");
|
||||||
|
packetPool.release(p);
|
||||||
|
return;
|
||||||
|
}
|
||||||
p->channel = ch.index;
|
p->channel = ch.index;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user