Page 1 of 1

ble mesh light model

Posted: Thu May 28, 2020 8:15 pm
by chegewara
We have generic ON/OFF example and more or less i understand it, but i need to use lighting server/client model.
I know how lighting model should extend generic on/off and generic level models
https://www.bluetooth.com/wp-content/up ... _FINAL.pdf
but now is my question, does it is implemented and i have to add only lighting model to element or i need to add generic on/off and generic level too?
If i build elements this way then nRF mesh shows models in element, but i dont see any options to control like in case of generic on/off model:

Code: Select all

static esp_ble_mesh_model_t extend_model_1[] = {
     ESP_BLE_MESH_MODEL_LIGHT_LIGHTNESS_SETUP_SRV(&light_pub_2, &light_server_2),
     ESP_BLE_MESH_MODEL_LIGHT_LIGHTNESS_SRV(&light_pub_3, &light_server_3),
};

static esp_ble_mesh_model_t extend_model_2[] = {
    ESP_BLE_MESH_MODEL_LIGHT_LC_SRV(&light_pub, &light_server_3),
    ESP_BLE_MESH_MODEL_LIGHT_LC_SETUP_SRV(&light_pub_2, &light_server_2),
};
This may be caused by nRF mesh app not being ready to work with lighting models or which is more probable i have to add more models to element.

Probably i am making big mistake in this line of code:

Code: Select all

ESP_BLE_MESH_MODEL_PUB_DEFINE(light_pub, 2 + 3, ROLE_NODE); // what is message length for different models?
Thanks for any tips.

Re: ble mesh light model

Posted: Tue Aug 25, 2020 11:35 am
by abansal22
Hello,

As far as my knowledge, till today nrf mesh does not support the lightning model.

Also when I set the sensor server model, the sensor setup model is the extended one. I have to include in the root model. so I think you have to implement the on_off model to get the extension model.

I am very new to the esp32. and my knowledge is very limited.

Re: ble mesh light model

Posted: Thu Oct 28, 2021 5:25 am
by yashjariwala
Any progress on this project?