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

What does access model and model id refer to, respectively?

Hi, when reading the BLE Mesh example code, I got really bewildered by this function:

access_model_add

and inside, there is this gem:

element_has_model_id

I understand mesh "protocol" is concept-heavy, but I'm pretty sure neither notion could be found in the official documents.

So what is access model? I know what model is, what access layer is, but I have no idea what access model is.

So #2 what is model id? I read about property id and UUID but never model id?

  • Hi Mitch996,

    There is no "access model", the function is in the access.c module and thus prefixed with access_*. The function adds a model to the access layer, it is the component/layer that deals handles the element and model structure. Please have a look at the section about the access layer in the introduction to Bluetooth mesh.

    The model ID is a unique ID for every defined model. See section "3.7.2 Model identifier" in the Mesh profile specification. Only one instance of a model can be present on any element. The function element_has_model_id() tests that this holds true.

    Best regards,
    Thomas

Related