- docs
- FlowFuse User Manuals
- Using FlowFuse
- Getting Started
- FlowFuse Concepts
- Changing the Stack
- DevOps Pipelines
- Environment Variables
- FlowFuse File Nodes
- FlowFuse Persistent Context
- FlowFuse Project Nodes
- High Availability mode
- Instance Settings
- Logging
- Shared Team Library
- Snapshots
- Teams
- User Settings
- FlowFuse API
- Migrating a Node-RED project to FlowFuse
- Device Agent
- Device Agent
- Hardware Guides
- FlowFuse Cloud
- FlowFuse Cloud
- FlowFuse Self-Hosted
- Installing FlowFuse
- Overview
- Configuring FlowFuse
- DNS Setup
- Docker install
- Email configuration
- First Run Setup
- FlowFuse File Storage
- Install FlowFuse on Kubernetes
- Local Install
- Upgrading FlowFuse
- Administering FlowFuse
- Administering FlowFuse
- Administrator configuration for SSO
- licensing
- Monitoring
- Telemetry
- User Management
- Support
- Community Support
- Premium Support
- Debugging Node-RED issues
- Contributing
- Contributing to FlowFuse
# Developing Flows on Your Device
# Add Device to FlowFuse
# Install Device Agent Software
- Open your Command Prompt (CMD) as an administrator.
- Run the following commands in sequence:
Windows:
mkdir c:\opt\flowfuse-device
cd c:\opt\flowfuse-device
npm install -g @flowfuse/device-agent
flowfuse-device-agent -w --ui-user admin --ui-pass password --ui-port 8081
Linux:
mkdir /opt/flowfuse-device
cd /opt/flowfuse-device
npm install -g @flowfuse/device-agent
flowfuse-device-agent -w --ui-user admin --ui-pass password --ui-port 8081
Note: The flags used in the command above have the following meanings:
- -w: Run the device agent in web user interface mode.
- --ui-user: Specify the username for the web user interface.
- --ui-pass: Specify the password for the web user interface.
- --ui-port: Specify the port for the web user interface.
- You can find more details about these flags here.
# Add Device in FlowFuse
- Open your web browser and go to your FlowFuse application page.
- Navigate to the Devices section.
- Click Add Device.
- Fill in the Device Name and Device Type, then click Add.

# Configure Device Agent
- Click Copy to Clipboard to copy the device configuration.

- Open a new browser tab and navigate to the IP address of the device using the port defined when starting up the device agent. <<ip of device>>:<<port>>, e.g., localhost:8081
- Paste the copied device configuration into the Agent Configuration field. This configuration contains vital information instructing the device on how to communicate with FlowFuse. It's crucial to keep this information secure and not share it with unauthorized individuals.

- Click
Apply.
# Link Device to Application
- Return to the Devices section in your FlowFuse application page.
- Locate your newly added device and click its menu.

- Choose to add the device to your application and click Add.

# Develop on Device
# Enable Developer Mode
- Navigate to Applications and select the application your device was added to.
- Go to the Devices tab within the application.
- Locate your newly added device and click on your device.
- Then Click Enable Developer Mode.

- Under the Developer Mode settings, click Enable for Editor Access.

- Access has now been granted to edit the Node-RED instance.

- Clicking Device Editor will navigate you to a window for edits to your Node-Red instance.

# Snapshots
# Take Device Snapshot
- Navigate to Devices Menu.
- Select device that you would like to take a snapshot of.

- Select Create Snapshot.
- Enter Name and Description if desired.

- Click Create.
# Restore Device from Snapshot
- Naviage to Devices Menu.
- Select the Device needing to be restored.
- Navigate to Shapshots menu.

- Hover over the Snapshot desired to be restored from and select Deploy Snapshot.

- Select Confirm.