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?