Function esp_ward::connectivity::wifi::get_response

source ·
pub fn get_response<'a, 's, MODE>(
    socket: Socket<'s, 'a, MODE>
) -> Result<([u8; 4096], usize), ()>
where MODE: WifiDeviceMode,
Expand description

Receives a message over the specified socket.

§Arguments

  • socket - The Socket from which to read the message.

§Returns

Returns a tuple containing the message as a byte array and the size of the message if successful. Returns an error otherwise.