FTP Logging

Demonstrates logging some data to a remote FTP server.

##Testing Run python3 -m pyftpdlib -w -p2121 -u logger -P secret on a local linux workstation to spin up a FTP server instance for testing Requires installing pyftpdlib with pip install pyftpdlib or sudo apt-get install python3-pyftpdlib etc.

while(run()){

let voltage = 14.5;
let msg = datetime().epoch.toFixed() + "\t" + voltage.toFixed(4) + "V"; // create a string with the epoch timestamp followed by the measurement value

// msg = 141312433142        13.6043V

let res = ftp.put("172.16.220.220:2121/voltage.log",msg,1,"logger","secret");  // append to the voltage.log file 
print(res);
waitMS(5000); // log every 5 seconds
}