- docs
- FlowFuse User Manuals
- Using FlowFuse
- Getting Started
- Static asset service
- Bill of Materials
- FlowFuse Concepts
- Changing the Stack
- Custom Hostnames
- Device Groups
- DevOps Pipelines
- Environment Variables
- FlowFuse Assistant
- FlowFuse File Nodes
- FlowFuse Persistent Context
- FlowFuse Project Nodes
- High Availability mode
- HTTP Access Tokens
- Instance Settings
- Logging
- Shared Team Library
- Snapshots
- Team Broker
- Teams
- User Settings
- FlowFuse API
- Migrating a Node-RED project to FlowFuse
- Device Agent
- Device Agent
- FlowFuse Device Agent Introduction
- Quick Start
- Installation
- Quick Start with Web UI
- Register your Device
- Running the Agent
- Deploying your Flows
- Hardware Guides
- FlowFuse Cloud
- FlowFuse Cloud
- FlowFuse Self-Hosted
- Quick Start
- Installing FlowFuse
- Overview
- Configuring FlowFuse
- DNS Setup
- Docker install
- Docker from AWS Market Place
- Docker on Digital Ocean
- Add Project Stacks on Docker
- Docker Engine on Windows
- Email configuration
- First Run Setup
- FlowFuse File Storage
- Install FlowFuse on Kubernetes
- Upgrading FlowFuse
- Administering FlowFuse
- Administering FlowFuse
- Configuring Single Sign-On (SSO)
- Licensing
- Monitoring
- Telemetry
- User Management
- Support
- Community Support
- Premium Support
- Debugging Node-RED issues
- Contributing
- Contributing to FlowFuse
- Introduction
- Adding Template Settings
- API Design
- Creating debug stack containers
- Database migrations
- FlowFuse Architecture
- Local Install
- State Flows
- Device Editor
- Invite External Users
- User Login Flows
- Reset Password Flow
- Project Creation
- Instance states
- User Sign up Flow
- Team creation Flow
- Team Broker
- Working with Feature Flags
# Quick Start Guide: Device Agent
This guide will walk you through the process of adding a device to FlowFuse, connecting it to the platform, and deploying your Node-RED flows remotely. FlowFuse's Device Agent helps unlock the power of your devices by allowing you to manage and deploy Node-RED flows running on those devices securely and remotely.
Workflow to onboard new Edge Devices through the FlowFuse Platform and Device Agent
# Setup & Installation
# Step 1: Install Device Agent (On Device)
NodeJS version 18 is supported but version 20 or later is recommended. However, if necessary, device agent version 2.8 does support NodeJS versions 14 and 16.
For full install instructions, follow the install instructions here.
# Linux/MacOS
sudo npm install -g @flowfuse/device-agent
# Windows
Issue the below command in an elevated command prompt:
npm install -g @flowfuse/device-agent
# Step 2: Register Device (On 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 & Device Type and select an Application
Screenshot of the dialog form to fill out when registering a Device
-
Click Add
-
You will be presented with a Device Configuration that you will need in the next step. (Do not close this window just yet.)
Screenshot of the dialog shown to a suer when a Device is registered
# Step 3: Connect the Device (On Device)
-
Open a Terminal/Command Prompt on the Device.
-
Paste the command presented when you registered your Device, and run it.
Example output in a Terminal showing a device agent successfully connecting to the FlowFuse Platform
# Step 4: Start the Device Agent (On Device)
-
Start the Device Agent using the command instructed by the device agent output e.g:
flowfuse-device-agent
Your device is now connected to FlowFuse and ready to be used.
# Deploy Flows to Device
There are two approaches to deploying flows to your Devices.
- Developer Mode: This mode allows you to edit and deploy flows directly from the FlowFuse platform.
- DevOps Pipelines: FlowFuse provides DevOps Pipelines as a way of pushing flows from one Instance/Device to another (or several in the case of Device Groups). This is the recommended approach if you're pushing from development environments (e.g. test devices) out to production devices.
# 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 Developer Mode toggle button on upper right.
The "Developer Mode" toggle button available on the Device screen
-
This will enable editor access for your device.
The "Device Editor" button available on the Device screen
-
Clicking Device Editor will launch the editor.
Screenshot of a Node-RED Editor for a Device
# DevOps Pipelines
Screenshot showing the user interface for creating and running DevOps Pipelines in FlowFuse
To work with Pipelines, you need at least one other Instance or Device to push from/to. You can follow hte instructions on setting up a Pipeline and deploying your flows between Instances/Devices DevOps Pipelines.
# Next Steps
Now you have a device connected to the platform, there are many features you can use to manage and monitor your devices. Here are a few to get you started: