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

Unable to add publish address to BLE MESH model

I have successfully created the model and i have added the model using access model add function

now i have an error in check_tx_params. I tried to use

dsm_address_publish_add (server_raw, &fmc_dsm);
access_model_publish_application_set(m_fmc_clients.model_handle,fmc_dsm);
access_model_publish_address_set(m_fmc_clients.model_handle,fmc_dsm);

this assigns the publish address to the model pool for model handle which i checked in the watch window but still i get the same error.

I am using segger embedded studios for development.

This is where i am getting the error

" ((p_rx_message == NULL &&
(m_model_pool[handle].model_info.publish_appkey_handle == DSM_HANDLE_INVALID ||
m_model_pool[handle].model_info.publish_address_handle == DSM_HANDLE_INVALID)) ||
!is_valid_opcode(p_tx_message->opcode))"

Parents Reply Children
No Data
Related