ble mesh light model
Posted: Thu May 28, 2020 8:15 pm
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:
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:
Thanks for any tips.
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),
};
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?