IoT (Internet of Things) November 13, 2014 02:23PM |
Registered: 9 years ago Posts: 8 |
Re: IoT (Internet of Things) November 13, 2014 05:40PM |
Admin Registered: 11 years ago Posts: 351 |
Re: IoT (Internet of Things) November 16, 2014 03:21PM |
Registered: 9 years ago Posts: 8 |
Re: IoT (Internet of Things) November 16, 2014 05:24PM |
Admin Registered: 11 years ago Posts: 351 |
comclear(CPORT) // clear the input buffer mux(1) // server will only work when this is a 1 cmd("CIPSERVER=1,80") // assume port 80 to be used see1() // this will tell you what the command returned, could be ERROR, no change or OK
Re: IoT (Internet of Things) November 16, 2014 05:42PM |
Registered: 9 years ago Posts: 8 |
Request= GET [www.google.com] 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 ------------ 6 Join existing access point 7 Set access point information ------ Testing ---------------------- <<Make sure correct mode is set before using>> 8 Test by connecting to google - (Station mode) 9 Run as Server - (Access Point) 10 Run as Client - (Station mode) 11 Get date and time from google - (Station mode) Select? 0 ok server(80) server(80) 1 ok see1() see1() Link +IPD,0,330:GET / HTTP/1.1 Host: 192.168.1.7 Connection: keep-alive Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0 .8 User-Agent: Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.111 Safari/537.36 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 OK Link ok server(80) server(80) 1 ok see1() see1() ok comclear(CPORT) comclear(CPORT) ok see1() see1() ok mux(1) mux(1) 1 ok see1() see1() ok cmd("CIPSERVER=1,80") cmd("CIPSERVER=1,80") ok see1() see1() AT+CIPSERVER=1,80 no change ok
Re: IoT (Internet of Things) November 17, 2014 08:54AM |
Admin Registered: 11 years ago Posts: 351 |
Re: IoT (Internet of Things) November 17, 2014 01:16PM |
Registered: 9 years ago Posts: 8 |
Re: IoT (Internet of Things) November 17, 2014 04:51PM |
Admin Registered: 11 years ago Posts: 351 |
while io_read(pSERVER,SERVER) = 0
while 1=1but you will need to reset to get out of the loop.
Re: IoT (Internet of Things) November 17, 2014 11:19PM |
Registered: 9 years ago Posts: 8 |
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 to connect to the SSID you have given it and wait for the device to give your lapsop phone/tablet an IP address, this can take a few seconds or a few minutes!! In the browser put 192.168.4.1 and press return To stop the server remove the link between C9 and ground wait... ready.. //sits here waiting Characters recieved 6 //upon trying to load the page this is returned peek: 318:GET / H ch= 0 Page recieved is [ / ] Text input Buffer 254 allocated Baud 115200 //looks like a reset here System cold start ****************************************** Wi-Fi Demonstatrion firmware Details at www.bypic.co.uk ****************************************** wait... ====================================== 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 ------------ 6 Join existing access point 7 Set access point information ------ Testing ---------------------- <<Make sure correct mode is set before using>> 8 Test by connecting to google - (Station mode) 9 Run as Server - (Access Point) 10 Run as Client - (Station mode) 11 Get date and time from google - (Station mode) Select?
Re: IoT (Internet of Things) November 18, 2014 08:51AM |
Admin Registered: 11 years ago Posts: 351 |
Re: IoT (Internet of Things) November 18, 2014 01:19PM |
Registered: 9 years ago Posts: 8 |
ready.. Characters recieved 6 peek: 318:GET / H ch= 0 Page recieved is [ / ] Text input Buffer 254 allocated Baud 115200
System cold start
Re: IoT (Internet of Things) November 18, 2014 03:18PM |
Admin Registered: 11 years ago Posts: 351 |
Re: IoT (Internet of Things) November 18, 2014 11:34PM |
Registered: 9 years ago Posts: 8 |
Re: IoT (Internet of Things) November 19, 2014 08:36AM |
Admin Registered: 11 years ago Posts: 351 |
Re: IoT (Internet of Things) November 19, 2014 10:58PM |
Registered: 9 years ago Posts: 8 |
Re: IoT (Internet of Things) November 20, 2014 08:46AM |
Admin Registered: 11 years ago Posts: 351 |
Re: IoT (Internet of Things) January 23, 2015 05:02PM |
Registered: 9 years ago Posts: 5 |
Re: IoT (Internet of Things) January 23, 2015 07:36PM |
Admin Registered: 11 years ago Posts: 351 |
Re: IoT (Internet of Things) January 23, 2015 09:17PM |
Registered: 9 years ago Posts: 5 |
Re: IoT (Internet of Things) January 23, 2015 10:56PM |
Registered: 9 years ago Posts: 5 |
Re: IoT (Internet of Things) January 24, 2015 09:52AM |
Admin Registered: 11 years ago Posts: 351 |
Re: IoT (Internet of Things) January 24, 2015 11:13AM |
Registered: 9 years ago Posts: 5 |
Re: IoT (Internet of Things) January 24, 2015 04:09PM |
Admin Registered: 11 years ago Posts: 351 |
Re: IoT (Internet of Things) January 25, 2015 12:15PM |
Registered: 9 years ago Posts: 5 |
Re: IoT (Internet of Things) January 25, 2015 08:10PM |
Registered: 9 years ago Posts: 8 |