ESP8266.h library

"include "ESP8266.h#

i have a problam with the ESP8266 library the error is:: error: expected identifier before numeric constant
c:\Users\nimrod\Documents\Arduino\libraries\ESP8266-master/ESP8266.h:143:7: note: in expansion of macro 'ESP8266'
143 | class ESP8266 {
| ^~~~~~~
: error: expected unqualified-id before numeric constant
c:\Users\nimrod\Documents\Arduino\libraries\ESP8266-master/ESP8266.h:143:7: note: in expansion of macro 'ESP8266'
143 | class ESP8266 {
| ^~~~~~~
: error: expected unqualified-id before numeric constant
c:\Users\nimrod\Documents\Arduino\libraries\ESP8266-master/ESP8266.h:216:8: note: in expansion of macro 'ESP8266'
216 | extern ESP8266 WiFi;
| ^~~~~~~

exit status 1

Compilation error: exit status 1
i used just the code i wrote and it still happnd whay should i do i used the NodeMCU 1.0 (ESP-12E Module)
board

Why is there a # at the end of the include instead of a "?

What are your trying to do?
Please provide a link to the library.

//"in the app its hashtag  as in (#)include "ESP8266
#include "ESP8266.h"

now does it show normal?
and the library is library

That library is not for an ESP8266 (like NodeMCU). It is for an Arduino Uno/Nano etc to communicate with an ESP8266 over serial. The httpClient example will compile on an Uno.

If you want to use a NodeMCU as a HTTP client, you will need to look at examples for the NodeMCU. If you select the correct board in the IDE, there will be a set of examples specific for that board.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.