Open jsprog opened 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.
Motivations
embassy-net
simplified lifetimes/generics sincebe0d977 (Sep 16, 2024)
. Sooner or later, esp-hal need to catch up. After updating embassy-net, I'm unable to createStack<'d>
instances due to a missing trait boundDriver
.Additional context
I already spotted some changes
struct Stack<D: Driver>
is nowStack<'d>
embassy_net::new(params)
instead ofembassy_net::Stack::new(params)
embassy_net::new(params)
returns with a tuple(Stack, Runner)
.Stack
is for creation ofSockets
(note: they areCopy
) andRunner
is for the background work.