Hi,
I want to add scheduler server to the mesh/light sample with nrf52DK, I change the element define like below:
static struct bt_mesh_elem elements[] = {
BT_MESH_ELEM(
1, BT_MESH_MODEL_LIST(
BT_MESH_MODEL_CFG_SRV,
BT_MESH_MODEL_HEALTH_SRV(&health_srv, &health_pub),
BT_MESH_MODEL_ONOFF_SRV(&led_ctx[0].srv),
BT_MESH_MODEL_DTT_SRV(&dtt_srv),
BT_MESH_MODEL_TIME_SRV(&time_srv),
BT_MESH_MODEL_SCHEDULER_SRV(&scheduler_srv)
),
BT_MESH_MODEL_NONE),
};
After build and flash, the program can't run and the error log "Initializing mesh failed (err -140)" occur.
I tried to use another nrf52840 board to do the same testing, but the fault still occurred.
After deleting BT_MESH_MODEL_SCHEDULER_SRV(&scheduler_srv) , the program runs normally.
What is the correct approach to handle this?