posting with TCP

Everything pertaining to the data.sparkfun.com service, the phant project which powers it, and user projects which talk to the service.

Moderators: phalanx, toddtreece, Brennen@SparkFun

Post Reply
ChrisBob#
Posts: 3
Joined: Tue Apr 08, 2014 9:40 am

posting with TCP

Post by ChrisBob# » Fri Oct 30, 2015 12:45 pm

The help section about data.sparkfun says that someday I will be able to use a simple TCP command to post data. When can I expect this? I have RN171 communicating with an ATMega that can reliably make TCP connections, but I am having a little trouble figuring out the exact format for a POST command. Is it really as easy as sending this to Port:80 of data.sparkfun.com?

Code: Select all

POST /input/PUBLIC_KEY HTTP/1.0
From:chris@tactitionprogramming.com
Phant-Private-Key: PRIVATE_KEY

xPos=42.0&yPos=96.3
with appropriate values for PUBLIC_KEY and PRIVATE_KEY of course.

If that is all I need in the format then it isn't a big issue, but I would rather not include a full library just to handle the post request.

Post Reply