Function esp_ward::connectivity::wifi::ip_string_to_parts

source ·
pub fn ip_string_to_parts(ip: &str) -> Result<[u8; 4], &'static str>
Expand description

Converts a string IP address into a 4-byte array.

§Arguments

  • ip - A string slice representing the IP address.

§Returns

A result containing the IP address as a [u8; 4] array or an error message if the conversion fails.