mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-10 15:12:06 +00:00
No more goober traffic on public mqtt (#2831)
* No more goober traffic on public mqtt * Oops
This commit is contained in:
parent
a1c433748a
commit
b5e952db24
@ -455,6 +455,13 @@ void MQTT::onSend(const meshtastic_MeshPacket &mp, ChannelIndex chIndex)
|
|||||||
{
|
{
|
||||||
auto &ch = channels.getByIndex(chIndex);
|
auto &ch = channels.getByIndex(chIndex);
|
||||||
|
|
||||||
|
if (&mp.decoded && strcmp(moduleConfig.mqtt.address, default_mqtt_address) == 0 &&
|
||||||
|
(mp.decoded.portnum == meshtastic_PortNum_RANGE_TEST_APP ||
|
||||||
|
mp.decoded.portnum == meshtastic_PortNum_DETECTION_SENSOR_APP)) {
|
||||||
|
LOG_DEBUG("MQTT onSend - Ignoring range test or detection sensor message on public mqtt\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (ch.settings.uplink_enabled) {
|
if (ch.settings.uplink_enabled) {
|
||||||
const char *channelId = channels.getGlobalId(chIndex); // FIXME, for now we just use the human name for the channel
|
const char *channelId = channels.getGlobalId(chIndex); // FIXME, for now we just use the human name for the channel
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user