The documentation for the FlowFuse Device Agent can be found here
The FlowFuse Device Agent can be configured in 3 ways:
- If started with no configuration file the Device Agent will start a Web Server that will allow a
device.yml
file to be uploaded locally to the Device. Thedevice.yml
is provided by the FlowFuse platform when the device is created. - A
device.yml
file provided when the Device is created in the FlowFuse platform. This file can be injected into the Belena devcie using theFF_DEVICE_YML
environment variable (see below) - A group of Devices can be give a
device.yml
that contains a Provisionig Token. This will cause the Device to connect to the FlowFuse platform and register a new device, it will then download it's own uniquedevice.yml
file. The Provisioning token can be passed to the Belena device using theFF_DEVICE_YML
environment variable (see below). Provisioning tokens are created on the Team -> Settings page, under the Device's tab. When using a Provisioning Token the Belena Device name will match the FlowFuse Device name.
Download either a Device configuration file or a Provisioning token and then Base64 encode this (with no line breaks) using the following command:
base64 -w 0 device.yml
In the Balena Fleet config set a Variable called FF_DEVICE_YML
to the output of the base64 command.