This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

static assertion failed: "unspecified message" When adding light lightness model to light switch sample code

Hi

I am now trying to add the light lightness model to the light switch sample code in order to use both the light switch and light light lightness features.

After adding the code that I think I need from light lightness to light switch, and adding the necessary h and c files, I get the following error.

How can I fix this?

I would appreciate it if you could tell me.

I'm using

nrf5_SDK_for_Mesh_v4.2.0_src

nRF5_SDK_16.0.0_98a08e2

Thank you.

  • Hi, Amanda

    I checked code in nrf_mesh_config_app.h again and realized that I forgot to add the code below.

    Thank you for your your advice.

    #define LIGHT_LIGHTNESS_SETUP_SERVER_INSTANCES_MAX (1)
    
    #define ACCESS_MODEL_COUNT (/* Element 0:                                                                       */ \
                                1 + /* Config Server                                                                */ \
                                1 + /* Health Server                                                                */ \
                                1 + /* Generic DTT Server (extended by Generic Power OnOff Setup Sever)             */ \
                                1 + /* Generic OnOff Server (extended by Generic Power OnOff Server)                */ \
                                1 + /* Generic Power OnOff Server (extended by Generic Power OnOff Setup Server)    */ \
                                1 + /* Generic Power OnOff Setup Server (extended by Light Lightness Server)        */ \
                                1 + /* Generic Level Server (extended by Light Lightness Server)                    */ \
                                1 + /* Light Lightness Server (extended by Light Lightness Setup Server)            */ \
                                1   /* Light Lightness Setup Server                                                 */)

Related