Hi all,
I have a bridge which I want to be fully initialized, to have made the necessary connections and fill all it’s data caches before the other thing handlers being initialized.
What I have is in initialize() of the bridge. I set the bridge to status UNKNOWN at the start of this method, then I do the rest of initialization/communication and at the end I set the bridge as ONLINE. I would expect the framework to not try to create thing handlers before the bridge is ONLINE but the framework creates all handlers and executes their lifecycle in parallel which sometimes leads to issues in retrieving the information which bridge caches in certain structures.
Maybe here is time to note that I use declarative creation of things (i.e. each thing has it’s own record in the binding.things file). Probably one way could be to switch to dynamic discovery mode which I haven’t yet researched how could be done.
I wonder if there is any other smart way to control this behavior through the framework or I should look into solving it in my coding?
Cheers,
K.