/** Start off network handling by checking liveness of the link and ESP device. */
Start off network handling by checking liveness of the link and ESP device.
Start off network handling by checking liveness of the link and ESP device .
pub fn start(&mut self, echo: bool) -> Result<(), S::Error> {
        assert!(self.state == State::Initial || self.state == State::Idle);
        if echo {
            self.port.write_all(b"AT\r\n")?;
        } else {
            // Disable echo as very first thing to avoid excess serial traffic
            self.port.write_all(b"ATE0\r\n")?;
        }
        Ok(())
    }
pub fn start ( & mut self , echo : bool ) -> Result < ( ) , S :: Error > { assert ! ( self state State Initial self state State Idle ) ; if echo { self . port . write_all ( b" \r \n " ) ? ; } else { // Disable echo as very first thing to avoid excess serial traffic self . port . write_all ( b" \r \n " ) ? ; } Ok ( ( ) ) }
Start off network handling by checking liveness of the link and ESP device.
Start off network handling by checking liveness of the link and ESP device .
&mut self
echo
bool