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

Adding client to server in mesh light example

Hello,

I am working on application where client sends the data to server in mesh, all servers are receiving the data as per the group subscriptions. Now, i have added the server model to the client and able to control trough android app. Next, i tried to add the client to the server application by taking the reference of client application and called the same setup of functions i.e. generic_onoff_client_set(params), but it is not working. Assigned all the callbacks as per the requirement. Debugging shows, mesh assert at address...

I just changed the ACCESS_MODEL_COUNT to existing+1 and CLIENT_COUNT is set to 1 instead of 2 (which is there in the light switch client application). Mobile app is able to show the added client under element 2 (as i have put app_element_index to 1) and also configured to publish it to group address and the client application server model subscribes to the same published address. 

Did i miss something to during configuration?

Thanks,

Nikhil 

Related