When i enable BLE_DFU_SUPPORT_ENABLED 1 and debug i have problem Mesh error 4 at 0x00000000 (:0).
I'm using sdk: 17.0.2, sdk_for_mesh: 5.0.0. Board nRF52840 DK.
Thanks you for support.
When i enable BLE_DFU_SUPPORT_ENABLED 1 and debug i have problem Mesh error 4 at 0x00000000 (:0).
I'm using sdk: 17.0.2, sdk_for_mesh: 5.0.0. Board nRF52840 DK.
Thanks you for support.
Hi Son,
Yes, but you would need to define your own model. Have a look at the simple_on_off model. You need to define your own payload data , to add a byte array there.
Hi Hùng,
To use simple_on_off, i just need to change function "models_init_cb", "mesh_init" in main.c, right? And which funcion will send my message? I see uint32_t simple_on_off_client_set(simple_on_off_client_t * p_client, bool on_off), it send bool message but not send string message.
Please study the generic on off example to know how to implement a model in your application.
You can just refine the payload, so instead of a bool variable, you can define a byte array.
Hi Hung,
I add vendor model. So how to use this model and refine the payload. Sorry for my ignorance. Please help me.

Have you tried to provide the opcode that you used in your model and the payload ?
I would suggest to print out the log inside access.c , please look for the logging ("RX:" ) inside mesh_msg_handle() , you can print out the raw message that you receive on access layer. From that you can check if you receive the packet from the phone or not, and if the opcode is correct or not.
If that works, you can start to customize the nRF Mesh app interface , the source code for the app is available on our github.