amx-ftp
Send and retrieve files over FTP from an AMX Netlinx processor
Installation
$ npm install amx-ftp --save
Requirements
As of version 2.0, it is recommended to use node version 8 or higher due to the use of async/await.
Features
- Get all txt files from an AMX processor
- Send files to an AMX processor
Example Usage Node.js
Get all the files from the processor
const amxFtp = amxFtp
Send a file to a processor
const amxFtp = amxFtp
Defaults
Both getFiles and sendFile have default parameters than can be overridden
host: '127.0.0.1' port: 21 user: 'administrator' password: 'password' path: 'ftpFiles'
ToDo
- Add methods for just retrieving a list of files.
- Add method to pull individual file
- Add CLI support
Devices Tested
So far this has only been test with NX processors but should work with any Netlinx Processor