-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Milestone
Description
- Sensors like
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);