Author Topic: Does the Nano-10 support HTTP REST (PUT or POST) ?  (Read 12235 times)

Brett Hocking

  • Newbie
  • Posts: 4
    • View Profile
Does the Nano-10 support HTTP REST (PUT or POST) ?
« 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


support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:Does the Nano-10 support HTTP REST (PUT or POST) ?
« Reply #1 on: July 10, 2013, 09:42:43 PM »
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)
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

Brett Hocking

  • Newbie
  • Posts: 4
    • View Profile
Re:Does the Nano-10 support HTTP REST (PUT or POST) ?
« Reply #2 on: July 16, 2013, 08:57:30 PM »
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.