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

Model subscription error (ACCESS_STATUS_NOT_A_SUBSCRIBE_MODEL)

I am working with the mesh 4.0 light switch example and had a general question regarding a custom model I created based off the simple on off model.

During configuration of a node, I am getting stuck when trying to configure the node server subscribe address.

When calling:

uint16_t element_address = m_current_node_addr;
nrf_mesh_address_t address = {NRF_MESH_ADDRESS_TYPE_INVALID, 0, NULL};
address.type = NRF_MESH_ADDRESS_TYPE_GROUP;
address.value = 0xC001;

access_model_id_t model_id;
model_id.company_id = m_server_model_id.company_id;
model_id.model_id = m_server_model_id.model_id;
status = config_client_model_subscription_add(element_address, address, model_id);

I am getting back opcode status field: 8  (ACCESS_STATUS_NOT_A_SUBSCRIBE_MODEL)

What does this mean?

Where in the simple on off model is the model described as being a "subscribe model" or a "publish model" ?

Parents Reply Children
No Data
Related