Hi,
as I know from the mesh spec, the number of elements cannot change after a device was provisioned. Nordic even went so far as to define the number of elements during compile time. I have now done a lot of research but could nowhere find an answer to this question.
Now, let's say that I want to create firmware for a DALI controller. By design, the controller will not know how many light bulbs are attached without enumerating them first. The user could also decide to add / remove the bulbs at any time and re-enumerate them.
What is the best and most standard way to deal with a situation like this? I see two options:
- During provisioning, enumerate the DALI devices and generate the appropriate number of elements before the provisioning is done. In order to do another DALI search, the device must do another search and must afterwards be reprovisioned.
- Provide the maximum number of elements at all times and figure out some (non-standard?) way to tell the user which lightbulbs are currently available and which are not. This would be a bit weird if the device is e.g. a DMX device with support for up to 512 lightbulbs.
Thanks,
Marius