NervesHubLinkCommon.Message.UpdateInfo (nerves_hub_link_common v0.2.0) View Source

Link to this section Summary

Types

t()

Payload that gets dispatched down to devices upon an update

Functions

Parse an update message from NervesHub

Link to this section Types

Specs

t() :: %NervesHubLinkCommon.Message.UpdateInfo{
  firmware_meta: NervesHubLinkCommon.Message.FirmwareMetadata.t(),
  firmware_url: URI.t()
}

Payload that gets dispatched down to devices upon an update

firmware_url and firmware_meta are only available when update_available is true.

Link to this section Functions

Specs

parse(map()) :: {:ok, t()} | {:error, :invalid_params}

Parse an update message from NervesHub