Skip to content

Implement ethernet packet API for AsyncClient #141

Description

@ZiggVert

The WincWifi struct has the following APIs, which are missing on the AsyncClient struct;

pub fn read_ethernet_packet(&mut self, buffer: Option<&mut [u8]>, timeout: Option<u32>) -> Result<usize, StackError>;
pub fn send_ethernet_packet(&mut self, net_pkt: &[u8]) -> Result<(), StackError>;

As an aside, why is buffer an Option?, and could timeout instead be an Option<Duration> or renamed to timeout_ms.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions