How to configure a node for control model. I have used light switch on/off template to implement a control mode but i i don't know how to make a control logic for client. Have to use only client at a time but if i run the code i'm getting error and it run both client and sever at same time. I have merge the client and server program for control model but i'm getting a error as NRF_INVALID_STATE which is in nrf_mesh_init function.Please help me and thanks in advance.
Which mesh sdk version are you currently using? Have you taken a look at the creating new models documentation? This documentation might also be helpful. What error are you currently receiving? As far as I know, we have not implemented a control model yet, but I have asked about this internally & will get back to you soon.
Thanks for your reply. I'm using mesh sdk 2.1.1. For control model i used light switch control example by merge client and server main.c i'm getting error as NRF_INVALID_STATE. I have problem to initialize mesh stack & softdevice for both client and server same time. only for first time i can use mesh stack and softdevice if use the same for server i get this error.
I have added the log which i get error:
<t: 0>, mesh_softdevice_init.c, 117, Initializing SoftDevice...<t: 0>, mesh_softdevice_init.c, 75, Enabling BLE...<t: 16>, mesh_softdevice_init.c, 109, sd_ble_enable: app_ram_base should be adjusted to 0x20002DA0<t: 58413>, main.c, 303, Initializing and adding models<t: 63311>, main.c, 366, Device UUID : 0059ABCDEFABCDEFACCDEFABCDEFABCD<t: 63318>, main.c, 443, ----- BLE Mesh Light Switch Server Demo -----<t: 63325>, app_error_weak.c, 105, Mesh error 8 at 0x00000000 (:0)
Do you mean the provisioner code for the github repo? If so, this is all done on the smartphone. See these github links for the nRF Mesh smartphone apps: iOS, Android.
My smartphone does not support Bluetooth 5
You do not need Bluetooth 5 to use the nRF Mesh app. Have you tested the app?
I want the node structure as Element 0: Configuration Client, Health Client and Generic on/off client. Element 1: Generic on/off Server
Thanks for your support, I have built control model.
Hi, I'm currently facing the same issue. I've built a control model with both server and client functionalities, essentially merging the Generic OnOff Client and Server models, and modifying the data being sent. My program compiles and flashes to the boards, and I'm able to provision each one, but if I provision one and configure it, then try to provision the other, the first one disconnects. @Satheesh Would you be open to sharing your solution, or even source code? :)