fn read_message(&self) -> Option<MessageHeader> {
        let mut buffer = [0; sx1276::LORA_MTU];
        loop {
            if let Ok(bytes_read) = self.receive(&mut buffer) {
                if bytes_read > 0 {
                    let data = buffer[..bytes_read].to_vec();
                    if let Ok(m) = MessageHeader::from_vec(data) {
                        return Some(m);
                    }
                }
            }
        }
    }
/// Reads a message (if possible) from the underlying socket
Reads a message (if possible) from the underlying socket
Reads a message ( if possible ) from the underlying socket
fn read_message(&self) -> Option<MessageHeader> {
        let mut buffer = [0; sx1276::LORA_MTU];
        loop {
            if let Ok(bytes_read) = self.receive(&mut buffer) {
                if bytes_read > 0 {
                    let data = buffer[..bytes_read].to_vec();
                    if let Ok(m) = MessageHeader::from_vec(data) {
                        return Some(m);
                    }
                }
            }
        }
    }
fn read_message ( & self ) -> Option < MessageHeader > { let mut buffer = [ 0 ; sx1276 :: LORA_MTU ] ; loop { if let Ok ( bytes_read ) = self . receive ( & mut buffer ) { if bytes_read > 0 { let data = buffer [ .. bytes_read ] . to_vec ( ) ; if let Ok ( m ) = MessageHeader :: from_vec ( data ) { return Some ( m ) ; } } } } }
Reads a message (if possible) from the underlying socket
Reads a message ( if possible ) from the underlying socket
&self