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

@@ -13,7 +13,8 @@ class RoutingModule : public ProtobufModule<meshtastic_Routing>
*/
RoutingModule();
void sendAckNak(meshtastic_Routing_Error err, NodeNum to, PacketId idFrom, ChannelIndex chIndex, uint8_t hopLimit = 0);
virtual void sendAckNak(meshtastic_Routing_Error err, NodeNum to, PacketId idFrom, ChannelIndex chIndex,
uint8_t hopLimit = 0);
// Given the hopStart and hopLimit upon reception of a request, return the hop limit to use for the response
uint8_t getHopLimitForResponse(uint8_t hopStart, uint8_t hopLimit);