This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Distinguish heartbeat messages from other messages in mesh network

Hi!

I'm trying to log the flow of communication in the Light Control example of the Mesh SDK. But when I log all the received network messages on a server, I also get a lot of received heartbeat messages. I would like to distinguish between those and packets handling one specific communication between a sender and receiver. I tried several things (Destination address, packet length ...) but I don't seem to be able to find a way to identify a packet as a heartbeat packet alone. How would you guys do this?

Thanks in advance!

Mathias

Parents
  • Hi Mathias,

    Are you sure it's heartbeat packet ? not health status packet ? We haven't implemented heartbeat in our mesh SDK.

    Have you try to check the opcode of the packet ? If you have a look at health_opcode_t inside health_opcodes.h you can find the list of opcode used for Health model.

    By default the server will send fault status with HEALTH_OPCODE_CURRENT_STATUS opcode periodically.

Reply
  • Hi Mathias,

    Are you sure it's heartbeat packet ? not health status packet ? We haven't implemented heartbeat in our mesh SDK.

    Have you try to check the opcode of the packet ? If you have a look at health_opcode_t inside health_opcodes.h you can find the list of opcode used for Health model.

    By default the server will send fault status with HEALTH_OPCODE_CURRENT_STATUS opcode periodically.

Children
Related