farmbot v6.4.1 Farmbot.System behaviour View Source
Common functionality that should be implemented by a system
Link to this section Summary
Types
Reason for a task to execute. Should be human readable
Any ole data that caused a factory reset. Will try to format it as a human readable binary
Functions
Remove all configuration data, and reboot
Format an error for human consumption
Reboot
Shutdown
Callbacks
Should remove all persistant data. this includes:
- network config
- credentials
Restarts the machine
Shuts down the machine
Called when the Application stops
Link to this section Types
Reason for a task to execute. Should be human readable.
Any ole data that caused a factory reset. Will try to format it as a human readable binary.
Link to this section Functions
factory_reset(unparsed_reason()) :: no_return()
Remove all configuration data, and reboot.
Format an error for human consumption.
Reboot.
Shutdown.
Link to this section Callbacks
Should remove all persistant data. this includes:
- network config
- credentials
Restarts the machine.
Shuts down the machine.
Called when the Application stops.