The Bluetooth Mesh Light Switch example provides an example of how to program a Bluetooth Mesh application where the client model is on the provisioner device and the server models are on other devices.
I am having problems figuring out how to program the reverse case, a server model on the provisioner device and clients on other devices.
More specifically am I a bit confused about these function calls:
dsm_appkey_add()
dsm_address_publish_add()
access_model_application_bind()
access_model_publish_application_set()
All these functions is called in the provisioner / client node. I am not sure whether they are called because the device is the provisioner or because it has a client model.
That is, when writing my own application should i call these functions in my client or server device?
I, of cause, asks this because I am not completely sure what these functions does, and why they should be used so any deeper explanation of the functions is also welcome.