Converting RN Wifly code to Spinneret
T Chap
Posts: 4,223
I have various code that uses the Prop connected to the RN134 Wifly module, which is a wifi interface that accepts serial commands from the Prop. I have some needs that require a wired version to upload data to a database periodically. Can someone point me in the right direction to figure out how to set up the Spinneret to do the following;
Wait for another Prop to send a byte value that represents an opcode.
Connect to a php webpage hosted on a remote server using a Get or Post with approximately 5 to 10 values included in the get.
Receive any echo's
Parse any echo's and respond or do something locally
Close the socket.
I have read over the httpserver but nothing jumps out as simple straight forward solutions as it is all over my head.
Wait for another Prop to send a byte value that represents an opcode.
Connect to a php webpage hosted on a remote server using a Get or Post with approximately 5 to 10 values included in the get.
Receive any echo's
Parse any echo's and respond or do something locally
Close the socket.
I have read over the httpserver but nothing jumps out as simple straight forward solutions as it is all over my head.
Comments
On a side note. I was initially searching for this forum on my iphone and it isn't there, which is why I posted my other Spinneret question in the Propeller forum thinking this section was merged and deleted. On a PC browser I can see this forum,
For about 25 bucks, the Spinneret is wifi'd with this device:
http://www.netgear.com/home/products/connected-entertainment/gaming-home-theater/WNCE2001.aspx
I'll be picking up a Netgear Universal WiFi Adapter - Thanks
Another idea is to have a page that displays the time, but then do a GET with the updated time in the parameters, where the time is entered in data fields and the button press creates the GET with the values added. BTW if someone is interested in offering some consulting services to help me out on accomplishing a few little goals like this, let me know.
A page is not required. A simple GET with URL parameters is all you need.