Converting RN Wifly code to Spinneret
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,
DAT google byte "GET /finance/historical?q=" q byte "FB", "&output=" csv byte "csv", "HTTP/1.1", CR, LF,
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
-------------------------------------------------- Requesting IP.....192.168.1.25 Lease Time........604800 DNS...............192.168.1.254 DHCP Server.......192.168.1.254 Router............192.168.1.1 Gateway...........192.168.1.1 DNS Init (bool)...True Resolved IP(0)....74.125.137.113 Resolved IPs......6 Initialize Socket Begin Client Web Request Status(open)......13 Status(conn)......01 Connecting to.....74.125.137.113 Sending HTTP Request Bytes Sent........99 Bytes received....11734 Disconnect
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.
http://<some ip:port>/settime/?hh=05&mm=30&ss=10