Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when build esp8266 webserver #513

Open
huyhtc opened this issue Nov 2, 2018 · 3 comments
Open

error when build esp8266 webserver #513

huyhtc opened this issue Nov 2, 2018 · 3 comments

Comments

@huyhtc
Copy link

huyhtc commented Nov 2, 2018

hi
Error when i build esp8266 example HelloServer

[23.9%] Compiling ESP8266mDNS.cpp...
C:/Users/huydl/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/libraries/ESP8266mDNS/ESP8266mDNS.cpp: In member function 'void MDNSResponder::enableArduino(uint16_t, bool)':
:0:15: error: 'ESP8266_GENERIC' was not declared in this scope
C:/Users/huydl/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/libraries/ESP8266mDNS/ESP8266mDNS.cpp:973:44: note: in expansion of macro 'ARDUINO_BOARD'
addServiceTxt("arduino", "tcp", "board", ARDUINO_BOARD);
^
[Build] Error occurred.

i change init.py line 1046 to
platform_paths = [platform_path, sketchbook_path]
it does not work.

@xabileiro
Copy link

I have the same problem whit that library

@kindzhon
Copy link

no answer?

@kindzhon
Copy link

I found way to be ok. It's 2.4.2 bug.
u can edit ESP8266mDNS.cpp like this.
/**

  • STRINGIZE
    */
    #ifndef STRINGIZE
    #define STRINGIZE(x) #x
    #endif
    #ifndef STRINGIZE_VALUE_OF
    #define STRINGIZE_VALUE_OF(x) STRINGIZE(x)
    #endif

addServiceTxt("arduino", "tcp", "board", STRINGIZE_VALUE_OF(ARDUINO_BOARD));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants