i remember when commodore and atari had incompatable software you could run it through a translator, I wish all software had it ... so many times I have seen a webbrowser updates that worked worse than the prior.
but things are coming along, It is pairing and receiving data then responding, but 2 problems I am running in to:
1) I am trying to respond to a http get request.. so i created a very simple webpage with VB, and parsed it in to a string for the uno. from there i had to escape out the quotes, ie \", and \\ but it seems like the < and > symbols cause a problem in the microcontroller which seemed to help when i escaped them out too.
When i say problem in the microcontroller i mean that it seems to hang or overflow or things strange like that because sometimes when i send the code a second time the listener stops working (i think its something in the strings) , but on build the uno is only 50%full... I wonder if there are other characters i should escape out too?
I think I am at a point where the http code is ok but it also seems i am missing a final terminator? because the browser line now gets to 75% complete but it just doesnt seem to display things then eventually times out.
code:
const String webpage PROGMEM = { "HTTP/1.1 200 OK\r\nContent-Type: text/html\r\n\r\n<center><h1>Hello World!! I am WiShield</h1><form method=\"get\" action=\"0\">Toggle LED:<input type=\"submit\" name=\"0\" value=\"LED1\"></input></form></center>" };
if (rx_byte.indexOf("GET") >= 0)
{
Serial.println("GOTTEN");
Serial.println(webpage);
portOne.println(webpage);
Serial.println("RETURNED");
}
SERIAL MONITOR:
Opening port
Port open
Serial Started:
WIFI Started:
Parameters Loaded:
OK
OK
OK
Connecting... 9 ��8 ��(-)
df_callback_reg()
SM=0, Sub=0
7 SM=2, Sub=0
SM=3, Sub=0
Auth with:ssid = dogg-house, auth mode = 7,
SM=3, Sub=1
SM=4, Sub=0
SM=4, Sub=1
SM=5, Sub=0
6 SM=6, Sub=0
Got IP:192.168.100.211
DNS wiki.dfrobot.com.cn, 182.254.133.61
fd 0 uip_aborted.9999. 0 128 0
...wifiFOund
Ready!
Received:
GET /helllooo HTTP/1.1
Host: 192.168.100.211:1000
User-Agent:
GOTTEN
HTTP/1.1 200 OK
Content-Type: text/html
<center><h1>Hello World!! I am WiShield</h1><form method="get" action="0">Toggle LED:<input type="submit" name="0" value="LED1"></input></form></center>
RETURNED
Received:
GET /helllooo HTTP/1.1
Host: 192.168.100.211:1000
User-Agent:
GOTTEN
HTTP/1.1 200 OK
Content-Type: text/html
<center><h1>Hello World!! I am WiShield</h1><form method="get" action="0">Toggle LED:<input type="submit" name="0" value="LED1"></input></form></center>
RETURNED
2) ALSO Are you guys able to get it to work as a client? to connect to a webpage? I feel there is an AT command missing on the datasheet ... also I have been scanning through the library files for the AT-strings but i cannot find any of the command structures...
I did read something once that i may need FW update but i fear doing that and destroying the wifibee ... did you guys encounter this?