esp-rs / esp-hal

no_std Hardware Abstraction Layers for ESP32 microcontrollers
https://docs.esp-rs.org/esp-hal/
Apache License 2.0
732 stars 203 forks source link

support embassy-net with simplified lifetimes/generics #2385

Open jsprog opened 2 hours ago

jsprog commented 2 hours ago

Motivations

embassy-net simplified lifetimes/generics since be0d977 (Sep 16, 2024). Sooner or later, esp-hal need to catch up. After updating embassy-net, I'm unable to create Stack<'d> instances due to a missing trait bound Driver.

the trait bound `WifiDevice<'_, WifiStaDevice>: Driver` is not satisfied`.

Additional context

I already spotted some changes

bugadani commented 2 hours ago

Sooner or later, esp-hal need to catch up.

esp-wifi will be updated once a new embassy-net version has been released. If you'd like to prepare an interim PR that brings our API closer, and maintain that PR until a release is made, we'd be grateful.