Kkula
Browse Questions » IOT2020 / IOT2040: Exchanging files Including node-red

About User

Questions Asked: 37.9K

Answers Given: 32

0
  • Open

IOT2020 / IOT2040: Exchanging files Including node-red

Hey folks,
I wanted to ask, whether anyone has found a way to exchange files within a network using node red.
I want to create archives with the IOT, collecting data in an industrial environment, but storing the files on a pc in the network, not the IOT itself. Is there a way top accomplish that using node red?
Kind regards

0 Likes 0 Favourites 0 Followers 0 Comments
Answers(1)

File Exchange in Node-RED for IoT Data Archiving

Yes, you can definitely exchange files within a network using Node-RED to archive data collected from your IoT devices, storing them on a PC instead of the IoT device itself.

Here are a few approaches:

  • SMB/CIFS Node: This node allows you to directly write files to a network share (Windows file share). Learn more about SMB/CIFS
  • FTP/SFTP Nodes: Set up an FTP or SFTP server on your PC and use the corresponding Node-RED nodes to upload files. FTP Node Details, SFTP Node Details
  • HTTP Request Node: Create a simple HTTP server on your PC (using Python Flask or Node.js Express, for example) with an endpoint to receive file uploads, and use the HTTP Request node in Node-RED to send the data.
  • MQTT: Publish the data to an MQTT broker on your network, and have a separate Node-RED flow (or a script) on your PC subscribe to the topic and save the data to a file.

Considerations:

  • Security: Protect your network share or FTP/SFTP server with appropriate credentials.
  • File Format: Choose an efficient archive format (e.g., zip, tar.gz) before sending. Use Node-RED's function node for creating archives.
  • Error Handling: Implement robust error handling to deal with network issues or write failures.

For detailed guidance and specific node configurations, please refer to the Siemens Support knowledge base and the Node-RED community forum.

0