[{"data":1,"prerenderedAt":329},["ShallowReactive",2],{"node-red-\u002Fnode-red\u002Fhardware\u002Farmxy-bl340":3},{"id":4,"title":5,"body":6,"description":321,"extension":322,"meta":323,"navigation":324,"path":325,"seo":326,"stem":327,"__hash__":328},"nodeRed\u002Fnode-red\u002Fhardware\u002Farmxy-bl340.md","Setting Node-RED on BLIIOT ARMxy BL340",{"type":7,"value":8,"toc":312},"minimark",[9,13,16,21,24,52,56,59,64,67,108,111,132,135,138,156,159,167,171,174,184,190,197,201,204,235,238,266,272,279,282,286,301,308],[10,11,12],"p",{},"The BLIIOT ARMxy BL340 is a high-performance single-board computer designed for demanding applications, including edge computing, automation, and embedded systems. Featuring an octa-core ARM processor, advanced connectivity options, and support for high-speed storage, it provides a powerful platform for developers and engineers.",[10,14,15],{},"Integrating this powerful hardware with FlowFuse not only enhances its capabilities but also simplifies the management and deployment process.",[17,18,20],"h2",{"id":19},"prerequisites","Prerequisites",[10,22,23],{},"Before proceeding with the installation, ensure you have the following:",[25,26,27,35,46],"ul",{},[28,29,30,34],"li",{},[31,32,33],"strong",{},"BLIIOT ARMxy BL340"," – A functioning device with internet access.",[28,36,37,40,41],{},[31,38,39],{},"FlowFuse Account"," - Ensure you have a FlowFuse account. If not, you can create a free account that allows you to manage up to two edge devices for free. For more information, refer to ",[42,43,45],"a",{"href":44},"\u002Fblog\u002F2024\u002F12\u002Fflowfuse-release-2-12\u002F","FlowFuse Free Tier",[28,47,48,51],{},[31,49,50],{},"Sudo Privileges"," – Administrator access to install required packages.",[17,53,55],{"id":54},"getting-started","Getting Started",[10,57,58],{},"This guide explores how to install and run Node-RED through the FlowFuse Device Agent on the BLIIOT ARMxy BL340, enabling you to build, manage, and scale Node-RED flows efficiently from a remote location.",[60,61,63],"h3",{"id":62},"installing-flowfuse-device-agent","Installing FlowFuse Device Agent",[10,65,66],{},"Before we start, it is recommended to update and upgrade your system to ensure all your packages are up to date:",[68,69,74],"pre",{"className":70,"code":71,"language":72,"meta":73,"style":73},"language-bash shiki shiki-themes github-light github-dark","sudo apt update && sudo apt upgrade -y\n","bash","",[75,76,77],"code",{"__ignoreMap":73},[78,79,82,86,90,93,97,99,101,104],"span",{"class":80,"line":81},"line",1,[78,83,85],{"class":84},"sScJk","sudo",[78,87,89],{"class":88},"sZZnC"," apt",[78,91,92],{"class":88}," update",[78,94,96],{"class":95},"sVt8B"," && ",[78,98,85],{"class":84},[78,100,89],{"class":88},[78,102,103],{"class":88}," upgrade",[78,105,107],{"class":106},"sj4cs"," -y\n",[10,109,110],{},"Next, let's install the FlowFuse device agent with the following script.",[68,112,114],{"className":70,"code":113,"language":72,"meta":73,"style":73},"bash \u003C(curl -sL https:\u002F\u002Fraw.githubusercontent.com\u002FFlowFuse\u002Fdevice-agent\u002Fmain\u002Fservice\u002Fraspbian-install-device-agent.sh)\n",[75,115,116],{"__ignoreMap":73},[78,117,118,120,123,126,129],{"class":80,"line":81},[78,119,72],{"class":84},[78,121,122],{"class":88}," \u003C(",[78,124,125],{"class":84},"curl",[78,127,128],{"class":106}," -sL",[78,130,131],{"class":88}," https:\u002F\u002Fraw.githubusercontent.com\u002FFlowFuse\u002Fdevice-agent\u002Fmain\u002Fservice\u002Fraspbian-install-device-agent.sh)\n",[10,133,134],{},"This script installs the Node.js runtime (if not already installed), sets up the FlowFuse device agent, and configures the device to automatically run the FlowFuse agent on boot and restart it in case of a crash.",[10,136,137],{},"To verify that the service is running, use the following command:",[68,139,141],{"className":70,"code":140,"language":72,"meta":73,"style":73},"sudo systemctl status flowfuse-device-agent.service\n",[75,142,143],{"__ignoreMap":73},[78,144,145,147,150,153],{"class":80,"line":81},[78,146,85],{"class":84},[78,148,149],{"class":88}," systemctl",[78,151,152],{"class":88}," status",[78,154,155],{"class":88}," flowfuse-device-agent.service\n",[10,157,158],{},"If running, you should see a result similar to the one shown in the image below:",[10,160,161],{},[162,163],"img",{"alt":164,"dataZoomable":73,"src":165,"title":166},"\"Status of the FlowFuse Device Agent systemd service\"","\u002Fnode-red-media\u002Fhardware\u002Fimages\u002Fsystemctl-status.png","Status of the FlowFuse Device Agent systemd service",[60,168,170],{"id":169},"registering-the-device-to-connect-to-flowfuse","Registering the Device to Connect to FlowFuse",[10,172,173],{},"Once you have installed the FlowFuse Device Agent, you need to register the hardware to connect it to your FlowFuse team.",[10,175,176,177,183],{},"For instructions on how to register the hardware with your FlowFuse team, follow the documentation: ",[42,178,182],{"href":179,"rel":180},"https:\u002F\u002Fflowfuse.com\u002Fdocs\u002Fdevice-agent\u002Fregister\u002F",[181],"nofollow","Register your Remote Instance",".",[10,185,186,187],{},"When registering your hardware, you will be presented with a dialog containing a one-time passcode command that the Device Agent uses to retrieve its configuration. ",[31,188,189],{},"Make sure to copy it.",[10,191,192],{},[162,193],{"alt":194,"dataZoomable":73,"src":195,"title":196},"\"Dialog containing a one-time passcode command that the Device Agent can use to retrieve its configuration\"","\u002Fnode-red-media\u002Fhardware\u002Fimages\u002Fconfiguration-dailog-with-one-time-code.png","Dialog containing a one-time passcode command that the Device Agent can use to retrieve its configuration",[60,198,200],{"id":199},"connecting-device","Connecting Device",[10,202,203],{},"Execute the command you have copied with sudo as shown below",[68,205,207],{"className":70,"code":206,"language":72,"meta":73,"style":73},"sudo flowfuse-device-agent -o \u003Cinsert-your-three-word-token> https:\u002F\u002Fapp.flowfuse.com\n",[75,208,209],{"__ignoreMap":73},[78,210,211,213,216,219,223,226,229,232],{"class":80,"line":81},[78,212,85],{"class":84},[78,214,215],{"class":88}," flowfuse-device-agent",[78,217,218],{"class":106}," -o",[78,220,222],{"class":221},"szBVR"," \u003C",[78,224,225],{"class":88},"insert-your-three-word-toke",[78,227,228],{"class":95},"n",[78,230,231],{"class":221},">",[78,233,234],{"class":88}," https:\u002F\u002Fapp.flowfuse.com\n",[10,236,237],{},"Once executed, you should see an output similar to the one below, indicating that the FlowFuse Device Agent has been successfully configured:",[68,239,241],{"className":70,"code":240,"language":72,"meta":73,"style":73},"[AGENT] 3\u002F21\u002F2025 7:09:25 PM [info] Entering Device setup...\n[AGENT] 3\u002F21\u002F2025 7:09:27 PM [info] Device setup was successful\n[AGENT] 3\u002F21\u002F2025 7:09:27 PM [info] To start the Device Agent with the new configuration, run the following command:\n[AGENT] 3\u002F21\u002F2025 7:09:27 PM [info] flowfuse-device-agent\n",[75,242,243,248,254,260],{"__ignoreMap":73},[78,244,245],{"class":80,"line":81},[78,246,247],{"class":95},"[AGENT] 3\u002F21\u002F2025 7:09:25 PM [info] Entering Device setup...\n",[78,249,251],{"class":80,"line":250},2,[78,252,253],{"class":95},"[AGENT] 3\u002F21\u002F2025 7:09:27 PM [info] Device setup was successful\n",[78,255,257],{"class":80,"line":256},3,[78,258,259],{"class":95},"[AGENT] 3\u002F21\u002F2025 7:09:27 PM [info] To start the Device Agent with the new configuration, run the following command:\n",[78,261,263],{"class":80,"line":262},4,[78,264,265],{"class":95},"[AGENT] 3\u002F21\u002F2025 7:09:27 PM [info] flowfuse-device-agent\n",[10,267,268,269,183],{},"Now, you can check the remote instance in the FlowFuse platform, where its status should be displayed as ",[31,270,271],{},"\"running.\"",[10,273,274],{},[162,275],{"alt":276,"dataZoomable":73,"src":277,"title":278},"\"Status of the BLIIOT ARMxy BL340 remote instance in FlowFuse, showing its connection and operational state\"","\u002Fnode-red-media\u002Fhardware\u002Fimages\u002Fstatus-flowfuse.png","Status of the BLIIOT ARMxy BL340 remote instance in FlowFuse, showing its connection and operational state",[10,280,281],{},"Now, when your device reboots, the FlowFuse Device Agent will automatically start, ensuring that your BLIIOT ARMxy BL340 remains connected to the FlowFuse platform.",[17,283,285],{"id":284},"accessing-node-red-editor","Accessing Node-RED Editor.",[287,288,289,292,295,298],"ol",{},[28,290,291],{},"Login into your FlowFuse account.",[28,293,294],{},"Click on the remote instances option in the left sidebar.",[28,296,297],{},"Click on the device and enable the developer mode by clicking on the top right-corner switch.",[28,299,300],{},"Once Developer Mode is enabled, click on the Open Editor option located next to the that switch.",[10,302,303,304],{},"For more information refer to ",[42,305,307],{"href":306},"\u002Fdocs\u002Fuser\u002Fintroduction\u002F#working-with-devices","FlowFuse documentation",[309,310,311],"style",{},"html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}",{"title":73,"searchDepth":250,"depth":250,"links":313},[314,315,320],{"id":19,"depth":250,"text":20},{"id":54,"depth":250,"text":55,"children":316},[317,318,319],{"id":62,"depth":256,"text":63},{"id":169,"depth":256,"text":170},{"id":199,"depth":256,"text":200},{"id":284,"depth":250,"text":285},"Guide to setting up Node-RED on BLIIOT ARMxy BL340, including installation and configuration steps.","md",{},true,"\u002Fnode-red\u002Fhardware\u002Farmxy-bl340",{"title":5,"description":321},"node-red\u002Fhardware\u002Farmxy-bl340","fIcIl3N_fFctaZVcGjvb_IqOWjM76aumeEurriy_ZyE",1780070557354]