Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By Henning
#43873 Hello dear ESP8266 friends,

this week I made my first tries with an ESP12e Module and the Arduino IDE. I believe it`s a great thing.

I provided my Arduino IDE with "http://arduino.esp8266.com/stable/package_esp8266com_index.json" and started with this example:
http://www.instructables.com/id/Programming-a-HTTP-Server-on-ESP-8266-12E/step7/Listen-to-What-the-Browser-is-Sending-to-the-HTTP-/

It`s working fine ... but I have questions. The author is using functions like "client.readString()" . Therefore he only includes a header file named ESP8266WiFi.h. I can`t find this file on my computer. So I googled for it and found this collection:
https://github.com/sandeepmistry/esp8266-Arduino/tree/master/esp8266com/esp8266/libraries/ESP8266WiFi/src

But there is no readString() defined in any file ? From where does the author knows about the existence of the readString function ?

It seems, that only the readString function works properly. Trying the defined functions "int read()" or "read(uint8_t *buf, size_t size)" failed.

Can somebody point me to the valid header file(s) which I can use with my Arduino IDE, please ?

Friendly regards
Henning
User avatar
By Henning
#44053 Thank you very much. I was wondering why the readString works and the read does not but I realized that the read function is none-blocking and that I have to wait for data using the available method.

(and I supressed c++ inheritance while exploring the new hardware, sorry)