-->
Page 1 of 1

Opening webpage using ESP8266 in Arduino

PostPosted: Tue May 17, 2016 3:25 am
by statbat
Hello All,

This is my first post here.
I am facing an issue and I dont know what is going on.

I am opening the website using arduino and ESP8266
I need to open via Arduino as I need to do further processing.

I have tried my method two ways. One is to enter direct AT commands in the serial monitor and I can make it work fine.
When I open the webpage I get this output which is perfect.

Code: Select all+IPD,382:HTTP/1.1 200 OK
Server: nginx
Date: Sun, 08 May 2016 06:44:47 GMT
Content-Type: text/html
Connection: close
Vary: Accept-Encoding
X-Powered-By: PHP/5.5.26
Set-Cookie: PHPSESSID=rnsmo0b4kq07c5mi3mdsu280g4; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache

S|R190|W5|O31.0|T0|A24|CLOSED


When I enter commands via Arduino Mega using Serial1.print() and then read using this code:

Code: Select all          while( Serial1.available() )
          {
            inChar = Serial1.read();
            Serial.write(inChar);
            //delay(1);         //could play around with this value if buffer overflows are occuring
       
          }//while   


In this case I get the data but with skipped letters.
What can be the reason?
Am I reading too fast or too slow ? I tried different values for DELAY also

Code: Select all+IPD,386:HTTP/1.1 200 OK
Server: nginx
Date: Tue, 17 May wed-y: HP/.5.26
SetCooie:PHPESSD=7kameos5kd7aqcn4e54; pth=
Epirs: hu, 19Nov198 0852:0 GT
ach-Cotro: n-stre,no-ach, mst-evaidate,pos-chck=, pe-ceck0
raga: o-cche

F~SR19|W5O310|T90|ENDLOSD