-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
mDNS discovery with IDE cannot detect the board name #7759
Comments
Slight correction: "board" from mDNS (for some reason) should be equal to the ID of the board, not the whatever value we set to either board= or variant= For example, if we select Line 3848 in a2982f9
esp32 seems to use a different scheme btw, by introducing |
...which we could find out normally, without going too far into the arduino-cli code $ arduino-cli.exe board details -b $board_fqbn for example, huzzah $ arduino-cli.exe board details -b esp8266com:esp8266:huzzah
Board name: Adafruit Feather HUZZAH ESP8266
FQBN: esp8266com:esp8266:huzzah
Board version: 3.1.0-dev
Identification properties: board=huzzah
... edit: $ arduino-cli compile --show-properties -b esp8266com:esp8266:d1_mini
_id=d1_mini
... |
When using IDE or `arduino-cli board list`, show full board name and FQBN ``` $ arduino-cli.exe board list Port Protocol Type Board Name FQBN Core xxx.xxx.x.xxx network Network Port LOLIN(WEMOS) D1 R2 & mini esp8266com:esp8266:d1_mini esp8266com:esp8266 ``` Also add `description` field to the mDNS response containing the original `{build.board}` string value. resolve esp8266#7759
* Board ID as build flag When using IDE or `arduino-cli board list`, show full board name and FQBN ``` $ arduino-cli.exe board list Port Protocol Type Board Name FQBN Core xxx.xxx.x.xxx network Network Port LOLIN(WEMOS) D1 R2 & mini esp8266com:esp8266:d1_mini esp8266com:esp8266 ``` Also add `description` field to the mDNS response containing the original `{build.board}` string value. resolve #7759 * does not work with recent ide (?) * fixup! does not work with recent ide (?)
Platform
Settings in IDE
Problem Description
OTA description is incomplete - variant is missing in description in Arduino OTA menu unlike for ESP32
it is due to property board which should contain the variant name, but ESP8266 put another string
string is put here (thanks @tobozo to find out)
https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266mDNS/src/LEAmDNS.cpp#L1278
and also https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266mDNS/src/LEAmDNS2Host.cpp#L792
So arduino IDE cannot match the variant with one present in board.txt
if I hardcode "generic" for the variant on board property - the result is correct
The text was updated successfully, but these errors were encountered: