Robot-Will/Stino

error when build esp8266 webserver

huyhtc opened this issue · 3 comments

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.

I have the same problem whit that library

no answer?

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));