Ahh, so it is! I tried assigning an empty string straight after the declaration but it still didn't work; so I commented that out and continued with declaring it in the function as it seems to do the job. It's been very useful in the long run though, learning about uploading scripts, getting a feel for how ByPic operates, etc. Thanks for all your help Jim, Tim.by ElFont - ByPic
I had a play around with the power supply, and the blue LED on the ESP8266 was brighter with a 700ma power supply...but that didn't solve the problem - but might improve Wi-Fi range, etc. I went through each function in 'http_server.bas' and printed a line out to bvserial when a function was called, and also what any variables in that function contained...then I found out what the problem wasby ElFont - ByPic
Correct - the device (laptop, phone, etc.) connects to ESP8266, but the board resets when the device tries to access 192.168.4.1; I'm assuming it's a reset - in the serial window I get this when accessing 192.168.4.1: ready.. Characters recieved 6 peek: 318:GET / H ch= 0 Page recieved is [ / ] Text input Buffer 254 allocated Baud 115200 then System cold startby ElFont - ByPic
That's exactly where it gets stuck, after entering the IP on a connected device. It looks like it's resetting every time a device tries to access it on 192.168.4.1: Select? 9 For this mode to work this needs to be set as an access point and the wf-fi should already be initialised. C9 needs to be grounded, to get out of this mode remove the link Set your laptop or phone/tablet wifi toby ElFont - ByPic
So I can see that ByPic gets the request - but it never serves up the webpage, I.E. accessing 192.168.1.7 (or 192.168.4.1 depending on the mode) never loads the webpage that enables toggling the LED/getting the temperature; in Chrome I think the error is something like "sent request, no data returned"?by ElFont - ByPic
It seems like it's so close! I've ran through the commands you sent, here's the output: Request= GET HTTP/1.0 Sun, 16 Nov 2014 17:31:00 GMT // Proof I'm getting the time! ====================================== 0 Exit to ByPic 1 Start wi-fi wf_start() 2 Reset wi-fi rst() 3 Run info() 4 Set as an Access point 5 Set as a station ------ One time settings ----------by ElFont - ByPic
Thanks Jimeer, I can connect the ESP8266 to my home router and get an IP for it, I can also get Google time but can't get it to display the IoT Server Example webpage on 192.168.1.7 (the IP it's currently been assigned). In terms of connections, only pin C9 is connected to ground (as doing anything with C7 and C8 causes ByPic not load the wi-fi menu when connected to serial). I'm powering tby ElFont - ByPic
Hey, The IoT kit is a great thing to learn/play with, but I'm getting stuck. Pretty sure I've got everything connected correctly and serial communication is working because I can get toggle Access Point / Station, get Google time and connect to the ESP8266 via 192.168.4.1 my phone. What I can't do is view the web page (to do the LED/DHT11 stuff) - the page can't be displayed; and when I runby ElFont - ByPic