Closed Jomelo closed 6 years ago
Hello, it is possible to set a task in a stable state when the status is changed to disable ?
For example: a pump control task
first iteration: // init something
loop: // ....
stable stop/disable state: // pump stop
Yes, this is what OnEnable and OnDisable methods are for. Please refer to wiki-page
Also, an example of use: APIS code for watering
Hello, it is possible to set a task in a stable state when the status is changed to disable ?
For example: a pump control task
first iteration: // init something
loop: // ....
stable stop/disable state: // pump stop