Behaviour for implementing a configurator.
Implementing a new one would typically be relevant if you need a new way of doing authentication or other configuration. New security hardware or a new way to make the private key, shared secret available.
If you want to control the firmware updates look at NervesHubLink.Client
instead.
Summary
Functions
The product token this library names itself with: NHL/<version>.
Callbacks
@callback build(%NervesHubLink.Configurator.Config{ archive_public_keys: term(), compress: term(), connect: term(), connect_wait_for_network: term(), data_path: term(), device_api_host: term(), device_api_port: term(), device_api_sni: term(), fwup_devpath: term(), fwup_env: term(), fwup_extra_options: term(), fwup_public_keys: term(), fwup_task: term(), heartbeat_interval_msec: term(), host: term(), nerves_key: term(), params: term(), rejoin_after: term(), remote_iex: term(), remote_iex_timeout: term(), request_archive_public_keys: term(), request_fwup_public_keys: term(), serializer: term(), shared_secret: term(), sni: term(), socket: term(), ssl: term(), tpm: term(), updater: term() }) :: NervesHubLink.Configurator.Config.t()
Functions
@spec build() :: NervesHubLink.Configurator.Config.t()
@spec fetch_configurator() :: atom()
@spec user_agent() :: String.t()
The product token this library names itself with: NHL/<version>.
It's sent as the User-Agent of the socket's websocket upgrade and of
firmware downloads. NervesHub records it for each connection, which is how
it knows which version of NervesHubLink a device runs.