Hi,
I'm looking at the Generic Power OnOff model available in SDK For Mesh v3.1.0.
1. Why is there a `generic_ponoff_setup_server_status_publish()` when the setup server doesn't support publishing?
From the Mesh Model Specification v1.0.1, section 3.3.5, "Generic Power OnOff Setup Server".
"This model shall support model subscription, as defined in Section 4.2.3 of the Mesh Profile specification [2]."
2. Why does the Generic Power OnOff Setup Server create an instance of a Default Transition Time model and share its subscription list?
While the standard says that the Generic Power OnOff Setup Server extends the Default Transition Time Server they don't have any bound state, thus they shouldn't share the subscription list as explained in section 1.4.1.1.1 "Subscription Lists on bound states".
"Models that operate on bound states share a single instance of a Subscription List per element."
The two models do not operate on bound states and thus shouldn't share the subscription list.
By creating an instance of the Default Transition Time Server model it becomes more complex to add other models that also extend the Default Transition Time Server model to the same element as it causes conflicts. See for example the Scene Setup Server that also extends the DTT Server model.
Thanks