farmbot v6.4.1 Farmbot.System.UpdateHandler behaviour View Source

Behaviour for setting up OTA updates.

Link to this section Summary

Callbacks

Apply a fw update

Called before and update

Called after a reboot

If a fw has already been applied

Setup updates

Link to this section Callbacks

Link to this callback apply_firmware(arg0) View Source
apply_firmware(Path.t()) :: :ok | {:error, term()}

Apply a fw update.

Link to this callback before_update() View Source
before_update() :: :ok | {:error, term()}

Called before and update.

Link to this callback post_update() View Source
post_update() :: :ok | {:error, term()}

Called after a reboot.

Link to this callback requires_reboot?() View Source
requires_reboot?() :: boolean()

If a fw has already been applied.

Link to this callback setup(atom) View Source
setup(atom()) :: :ok | {:error, term()}

Setup updates.