pub struct Esp8266Driver<'a, T, ENABLE, RESET, const MAX_SOCKETS: usize>where
    T: Read + Write,
    ENABLE: OutputPin,
    RESET: OutputPin,
{ /* private fields */ }
Expand description

Instance of the Esp8266 driver.

Configure MAX_SOCKETS to the max number of connections you expect to be making at the same time.

Implementations§

Create a new instance of the Esp8266 driver using the provided transport. The transport is usually the UART peripheral when used on a microcontroller.

The ENABLE pin is used to enable the adapter. The RESET pin is used to reset the adapter.

Run the driver task using the specified WiFi AP settings.

The adapter will be initialized/reset, and the driver will attempt to join the network.

Trait Implementations§

Error type returned on connect failure.
Type holding state of a TCP connection. Should close the connection when dropped.
Connect to the given remote host and port. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.