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

BLE Mesh SDK - Publish to unicast address

Hi,

how can I publish a message to unicast address from a generic on/off client with mesh sdk?

How can I set the address?

Jost to be more precise, the function:

      access_model_reliable_publish(const access_reliable_t * p_reliable)

only works if the client model publishes on a unicast address:

    if (pub_addr.type == NRF_MESH_ADDRESS_TYPE_UNICAST)
    {
        add_reliable_message(index, p_reliable);
    }

    return NRF_SUCCESS;

What if the model publishes on group address?

We need to implement a gateway. How can we address singles nodes in the mesh net?

Thank you

Lucio

Related