nerves_hub_link_http v0.8.2 NervesHubLinkHTTP

Official client to use HTTP polling for firmware updates from NervesHub

Link to this section Summary

Functions

Apply the update at the provided url.

Check for an available update and automatically apply it.

Check for an available update.

Link to this section Functions

Link to this function

apply_update(url)

apply_update(String.t()) :: no_return()

Apply the update at the provided url.

Link to this function

update(opts \\ [])

update(Keyword.t()) :: no_return() | :no_update | {:error, any()}

Check for an available update and automatically apply it.

Link to this function

update?(opts \\ [])

update?(Keyword.t()) :: {:ok, String.t()} | {:ok, :no_update} | {:error, any()}

Check for an available update.

The update is not automatically applied.