You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sensors like LED and alike should not have any callbacks (like it has on_off now), but only direct controllers (like the off method).
on_activate should also be provided by Context instead the Manager only => it should be similar to the one that Manager provides, except that the Manager based callback passes the "current" and the "next" Context objects as arguments, while this one should pass "self" (the "next" Context) only;
on_deactivate => similar to the previous one, except that, this is called when a Context is being switched to another one, but also provides access to "self" (the "current" Context);
on_start, on_stop, on_cycle_begin and on_cycle_end => the only difference between the callbacks of the same name that Manager provides, is the argument order and the fact that, these functions will only be called if the bound Context is the currently active one.
LEDand alike should not have any callbacks (like it hason_offnow), but only direct controllers (like theoffmethod).on_activateshould also be provided byContextinstead theManageronly => it should be similar to the one thatManagerprovides, except that theManagerbased callback passes the "current" and the "next"Contextobjects as arguments, while this one should pass "self" (the "next"Context) only;on_deactivate=> similar to the previous one, except that, this is called when aContextis being switched to another one, but also provides access to "self" (the "current"Context);on_start,on_stop,on_cycle_beginandon_cycle_end=> the only difference between the callbacks of the same name thatManagerprovides, is the argument order and the fact that, these functions will only be called if the boundContextis the currently active one.kb_Error(*on_start)(kb_Manager *const self, kb_rpi2_Context *const active);kb_Error(*on_start)(kb_rpi2_Context *const self, kb_Manager *const manager);