Add unit tests for MQTT (#5724)

* Add unit tests for MQTT

* Test received fields
This commit is contained in:
Eric Severance
2025-01-07 05:10:42 -08:00
committed by GitHub
parent 353740623f
commit 27fbfd03d6
7 changed files with 876 additions and 8 deletions

View File

@@ -431,6 +431,7 @@ void RadioLibInterface::handleReceiveInterrupt()
// nodes.
meshtastic_MeshPacket *mp = packetPool.allocZeroed();
// Keep the assigned fields in sync with src/mqtt/MQTT.cpp:onReceiveProto
mp->from = radioBuffer.header.from;
mp->to = radioBuffer.header.to;
mp->id = radioBuffer.header.id;