Joined: 30 Jan 2013 Posts: 12 Location: Cincinnati, OH
Posted: Thu Jul 24, 2014 3:43 pm Post subject: WIZ820io W5200 socketstat unexpected result
Hello. Complete TCP/IP noob here, apologies in advance. I am trying to run example webserver_w5200.bas on a WIZ820io module, modified for m328. IP is pingable. Initial goal is to reach "Sock_established" and receive "GET." When I connect with a browser or Easy TCP/IP, socketstat produces a value not listed in the BASCOM-AVR help index.
Code:
For I =0To7' for all sockets
Tempw =Socketstat(i , 0)' get status If Tempw <>0ThenPrint Tempw
SelectCase Tempw
Case15 Print"what?" Case Sock_fin_wait
Print"Connection being terminated" Socketdisconnect I
Case Sock_established
...
Loop End
When I connect, tempw = 15 = h0F = ????
When I disconnect, tempw = 24 = h18 = "SOCK_FIN_WAIT"
What is socketstat h0F?
On a possibly-related note, where can I find:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum