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

I need a clarification on the contents of the access_reliable_t struct used when sending Mesh messages.

When broadcasting mesh messages I use the access_reliable_t struct to set data.

I need clarification on what the contents indicate. The documentation is sparse and doesn't seem to describe the associations between access_model_handle_t, access_opcode t and access_reliable_cb_t types.

What do the opcodes exactly indicate?

If the model handle and opcode both indicate the recieving model, why have both`?

  • Hi,

    Please have a look here at Models and Elements section. 

    On one node there could be several elements meaning there could be several same model on one node. That's why we need model_handle to tell which exact model we are using. 

    One model can have several opcodes, think of opcodes as the commands you want to use. 

    The status_cb used when the reliable message get a response, the access layer need to know which function it should call when it receive the response. 

Related