GregEigsti wrote:Ok, here are my changes and they should fix this problem. Although it looks like Aerodyno took his repro web site down and my site cannot be hit repeatedly with either the modified or unmodified WiServer code
I added one function, resetOnLostConnection(), to the WiServer class and it is called (in the background) from WiServer.server_task(). So the fix, if it does indeed work, should not require any addition to your sketches.
This post has a zip attached to it which needs to be unzipped; the zip contains two files, WiServer.h/.cpp which should be copied over your existing copies in your libraries/WiShield directory.
Let me know if this helps (or not)!
Greg
GET /?ardu HTTP/1.1�
Host: www.ymicros.com�
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12 GTB5 FBSMTWB�
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5�
Accept-Language: en-us,en;q=0.5�
Accept-Encoding: gzip,deflate�
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7�
Keep-Alive: 300�
Connection: keep-alive�
�
������p-alive
��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������HTTP/1.0 200 OK
<html>³</html>
arlier in the day I tested the "hruska" fix from this thread and unfortunately the results were not so good
I did the same as above with the addition of modifying the sketch per the instructions, the board did reconnect, but then after 3 or 4 minutes it disconnected itself, then reconnected itself.
GregEigsti wrote:THANKS for taking a look and getting back! So ends this foray into WiServer and back to the TCP/UDP code that I like to play with!![]()
Greg
So Greg, I'm not quite sure how this works -- did you use PART of the Hruska code + your code, or just virgin asynclabs code + your code?
aerodyno wrote:..John, were you uploading every x seconds or just using WiShield as a webserver?
-s
Users browsing this forum: No registered users and 1 guest