The use of the ESP8266 in the world of IoT

User avatar
By nimafas
#53639 you were right, i installed the esp core library and it compiles fine. now i have problem on uploading the sketch. I've selected Generic ESP8266 Module from the boards but i think I've connected the esp to the arduino incorrectly. I was using softwereserial library while using this :
GND - GND
GPIO and GPIO2 - NC
VCC, RST and CH_PD - 3.3v
RX - 3
TX - 2
should i change it?
User avatar
By nimafas
#53693 hi again,
now i can connect to the server and i can send a URL and use get method for sending data to the server. the problem is i can not read data from the server. this part of the example should give me the answer of the request which contains the page's HTTP's, but I'm not receiving the HTTP on the serial monitor. what should i do?
Code: Select all// Read all the lines of the reply from server and print them to Serial
  while(client.available()){
    String line = client.readStringUntil('\r');
    Serial.print(line);
  }