Counting Incoming and Outgoing Messages from a Gateway
-
Hello everyone,
I would like to be able to count the messages passing through an MQTT gateway in order to generate statistics. The idea would be to count the received messages, sent messages, and perhaps the NACKs!
I can successfully count the incoming messages from the nodes with void receive(), but I can't manage to do this for the outgoing messages. Is there any way to do this?Thank's
-
@Trand yes, use the indication handler. https://forum.mysensors.org/post/103904 should be a good start.