Vendor model Library

Omar Morceli

I have implemented a mesh network code based on the mesh sample (samples\bluetooth\mesh), I have added two vendor models and it works great when I tested it.
Now I'm trying to make these vendor models easily added to any bluetooth mesh code, so I have created a library (with headers files) .
and in the main code I added the vendor models using  BT_MESH_MODEL_VND_CB  and  all  callbacks and opcodes are defined in the library file.

The code gets built without any errors, the device gets provisioned with succes, but the models does't start publishing as they do in the simple code.

Is there anything I missed ?