pub fn initialize<'a, Tx, Rx, EnablePin, ResetPin>(
tx: Tx,
rx: Rx,
enable_pin: &mut EnablePin,
reset_pin: &mut ResetPin,
response_queue: &'a mut Queue<Response, U2>,
notification_queue: &'a mut Queue<Response, U16>,
) -> Result<(Adapter<'a, Tx>, Ingress<'a, Rx>), AdapterError>Expand description
Initialize an ESP8266 board for usage as a Wifi-offload device.
- tx: Serial transmitter.
- rx: Serial receiver.
- enable_pin: Pin connected to the ESP’s
enpin. - reset_pin: Pin connect to the ESP’s
rstpin. - response_queue: Queue for inbound AT command responses.
- notification_queue: Queue for inbound unsolicited AT notification messages.