initialize

Function initialize 

Source
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>
where Tx: Write<u8>, Rx: Read<u8>, EnablePin: OutputPin, ResetPin: OutputPin,
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 en pin.
  • reset_pin: Pin connect to the ESP’s rst pin.
  • response_queue: Queue for inbound AT command responses.
  • notification_queue: Queue for inbound unsolicited AT notification messages.