embassy-net-esp-hosted

Crates

git

Versions

default

Flavors

new

Function new 

Source
pub async fn new<'a, I, OUT>(
    state: &'a mut State,
    iface: I,
    reset: OUT,
) -> (NetDriver<'a>, Control<'a>, Runner<'a, I, OUT>)
where I: Interface, OUT: OutputPin,
Expand description

Create a new esp-hosted driver using the provided state, interface, and reset pin.

Returns a device handle for interfacing with embassy-net, a control handle for interacting with the driver, and a runner for communicating with the WiFi device.