Closed Markus- closed 5 years ago
Ugh, looks like AsyncTCP once again released an incompatible version without a proper major version bump.
So is there anything I can do until a fix?
Regards Markus
I've "fixed" it by specifying the previous version of AsyncTCP in platformio.ini in the folder for that project. The version that works is: 1.0.3 The version that does not is: 1.1.0 The stuff after AsyncTCP specifies to use latest version before 1.1.0.
Like this:
; Auto generated code by esphome
[common]
lib_deps =
AsyncTCP@<1.1.0
build_flags =
upload_flags =
Hope this helps you out until OttoWinter has a proper fix for it
So is there anything I can do until a fix?
Regards Markus
Your entry is not recognized
; Auto generated code by esphome
[common]
lib_deps =
AsyncTCP@<1.1.0
build_flags =
upload_flags =
; ===== DO NOT EDIT ANYTHING BELOW THIS LINE =====
; ========== AUTO GENERATED CODE BEGIN ===========
[env:esp32]
board = esp32dev
board_build.partitions = partitions.csv
build_flags =
-DESPHOME_LOG_LEVEL=ESPHOME_LOG_LEVEL_DEBUG
-Wno-sign-compare
-Wno-unused-but-set-variable
-Wno-unused-variable
-fno-exceptions
${common.build_flags}
framework = arduino
lib_deps =
ArduinoJson-esphomelib@5.13.3
AsyncMqttClient@0.8.2
ESPmDNS
Preferences
${common.lib_deps}
platform = espressif32@1.6.0
upload_speed = 115200
; =========== AUTO GENERATED CODE END ============
; ========= YOU CAN EDIT AFTER THIS LINE =========
I think AsyncMqttClient forces the 1.1.0-version?
Scanning dependencies...
Dependency Graph
|-- <ArduinoJson-esphomelib> 5.13.3
|-- <AsyncMqttClient> 0.8.2
| |-- <AsyncTCP> 1.1.0
|-- <ESPmDNS> 1.0
| |-- <WiFi> 1.0
|-- <Preferences> 1.0
|-- <AsyncTCP> 1.0.3
|-- <WiFi> 1.0
Oh, also delete the new versions folder, so the only folder is the one with@1.0.3 at the end Sorry I didn't say that in the first post.
Yeah, how do you make sure dependencies dependencies use the correct version 😄
Strange.
If I delete the whole .pio...-Folder it doesn't work (as above). If I delete the subfolder (rm -rf esp32/.piolibdeps/AsyncTCP_ID1826) and just keep the 1.0.3 Version it compiles...
Ok. Thanks for the quick fix.
Regards Markus
Yeah, how do you make sure dependencies dependencies use the correct version 😄
Anybody has a working lib_deps config for those who need mqtt ? No combination of AsyncMqttClient worked for me so either I'm doing something wrong or I'm stuck waiting for a release with fixed dependencies.
See my "Strange"-Comment...
; Auto generated code by esphome
[common]
lib_deps =
AsyncTCP@<1.1.0
build_flags =
upload_flags =
; ===== DO NOT EDIT ANYTHING BELOW THIS LINE =====
; ========== AUTO GENERATED CODE BEGIN ===========
[env:esp32og]
board = esp32dev
board_build.partitions = partitions.csv
build_flags =
-DESPHOME_LOG_LEVEL=ESPHOME_LOG_LEVEL_DEBUG
-Wno-sign-compare
-Wno-unused-but-set-variable
-Wno-unused-variable
-fno-exceptions
${common.build_flags}
framework = arduino
lib_deps =
ArduinoJson-esphomelib@5.13.3
AsyncMqttClient@0.8.2
ESPmDNS
Hash
Preferences
${common.lib_deps}
platform = espressif32@1.6.0
upload_speed = 115200
This is a working copy, BUT:
Regards Markus
Also having trouble with this ...
Thanks @Markus- I can confirm your workaround works !
I'm guessing upgrading to platform = espressif32@1.8.0
(or 1.9.0) is not an alternative (yet?)... as AsyncTCP 1.1.0 appears to be using features introduced in arduino-esp32-1.0.2 which was supported in platformio-espress32-1.8.0, and 1.9.0 improved espota support.
Same issue. Is there a working revision combination of espressif and Arduino that is valid (old or current)?
@MajicCat this has been fixed in dev. You can use that branch, or wait for the next version to be released.
"me-no-dev/ESPAsyncWebServer" does not have a 'dev' branch. Which are you referencing?
The dev branch of this software, esphome. See up above where it says "OttoWinter closed this in esphome/esphome#653 7 days ago".
I use ESPhome as an addon in hassio. How can I delete the above mentioned file? I access my raspberry pi, where hassio lives on, with the ssh addon. But I can't find more then the project specific platformio.ini file inside "/config/esphome/...". For example "/data/projectname/.." does not exist.
Today I got an hassio update that fixed the AsyncTCP@1.0.3 issue.
Operating environment/Installation (Hass.io/Docker/pip/etc.):
I installed esphome fresh out of pip @ MacOS @ python 2.7
ESP (ESP32/ESP8266, Board/Sonoff):
ESP32dev - But compiling should be successful without any board attached... Affected component:
Description of problem:
Problem-relevant YAML-configuration entries: MINIMAL-EXAMPLE
Logs (if applicable):
Additional information and things you've tried:
I just installed esphome with pip and put this example yaml into place. A simple compile doesn't work. Is there any issue?