Internet PLC Forum
General => Technical support => Topic started by: Brett Hocking on July 09, 2013, 11:59:36 PM
-
I would like the Nano to upload reports to a web server.
Is it possible to upload using REST PUT or POST ?
Can the Nano output the data in CSV format ?
thanks
-
You can make a connection to a webserver using PRINT #4 "<TCPCONNECT xxx.xxx.xxx.xxx:yyyy>" and then use PRINT #4 and INPUT$(4) to communicate with the server. You can do GET or POST by formatting the string to be sent to the server according to the require protocol.
Typically if you write your own PHP handler it is easiest to handle data upload using HTTP GET command. We implemented this for our PLClog.com project (http://www.plclog.com)
-
Thank you for that information
I wonder if anyone else has been able to get the Nano-10 to talk to Xively ?
I haven't been able to get it working using some code from here that worked with Pachube.