How does the mesh message go if a node public message to the address of itself?

Hi,

for example:

uint16_t addr = bt_mesh_primary_addr();
struct bt_mesh_msg_ctx ctx = {
                    .addr = addr;
                };
...
bt_mesh_lightness_cli_light_set_unack
will this message over the air or be handled by itself not over the air?
 
Thank you in advance.
Best regards,
Shawn
Parents Reply
  • Hi,

    ShawnL said:
    But the messages that are addressed to a unicast address on the other node(target node) will be sent to the air and will be relayed by the other nodes(relay nodes) in the same mesh network, am I right?

    For the most part, yes.

    There are other messages which could be held back, namely messages for connected GATT devices (if the node is a GATT proxy), and messages for LPNs in a current friendship (if the node is a Friend node). Such messages are delivered over GATT bearer in a connection event (for GATT proxy), or over ADV bearer in a poll event (for Friend).

    For relays, those will also time out if TTL gets exhausted.

    Apart from that, messages would be sent over-the-air.

    Regards,
    Terje

Children
Related