Skip to content

ESP8266 'ARDUINO_BOARD_ID' bug still around #1767

Description

@Gord1

With reference to #1554 This is the same problem except that it is in V5 recent build and I thought it was supposed to have been fixed.

The error:

SloeberV5_Dev/arduinoPlugin/packages/esp8266/hardware/esp8266/3.1.2/libraries/ESP8266mDNS/src/LEAmDNS.cpp: In member function 'const void* esp8266::MDNSImplementation::MDNSResponder::enableArduino(uint16_t, bool)':
: error: 'd1_mini_clone' was not declared in this scope
/SloeberV5_Dev/arduinoPlugin/packages/esp8266/hardware/esp8266/3.1.2/libraries/ESP8266mDNS/src/LEAmDNS.cpp:1275:55: note: in expansion of macro 'ARDUINO_BOARD_ID'
1275 | || (!addServiceTxt(hService, "board", ARDUINO_BOARD_ID))
| ^~~~~~~~~~~~~~~~

I am using the ESP8266 D1 Mini Clone. The 'd1_mini_clone' refers to the base in the boards.sloeber.txt or boards.txt file, I believe (e.g.
d1_mini_clone.name=LOLIN(WEMOS) D1 mini (clone)
d1_mini_clone.build.board=ESP8266_WEMOS_D1MINI
d1_mini_clone.build.variant=d1_mini
d1_mini_clone.upload.tool=esptool
d1_mini_clone.upload.maximum_data_size=81920
... and so on

The compile line has:
'-DARDUINO_BOARD="ESP8266_WEMOS_D1MINI"' -DARDUINO_BOARD_ID="d1_mini_clone"

I noticed that the quotes around '-DARDUINO_BOARD="ESP8266_WEMOS_D1MINI"' is different than around
-DARDUINO_BOARD_ID="d1_mini_clone"
if that makes a difference.

Description Resource Path Location Type
Invalid arguments '
Candidates are:
void * addServiceTxt(const void *, const char *, const char *)
void * addServiceTxt(const void *, const char *, unsigned int)
void * addServiceTxt(const void *, const char *, unsigned short int)
void * addServiceTxt(const void *, const char *, unsigned char)
void * addServiceTxt(const void *, const char *, int)
void * addServiceTxt(const void *, const char *, short int)
void * addServiceTxt(const void *, const char *, signed char)
' LEAmDNS.cpp /BoatTelemetry/arduino/Release/libraries/ESP8266mDNS/src line 1275 Semantic Error

Some ideas for a temporary fix or a permanent fix would be helpful. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions