Function esp_ward::connectivity::wifi::find_unixtime

source ·
pub fn find_unixtime(response: &[u8]) -> Option<u64>
Expand description

Extracts a UNIX timestamp from a server response.

§Arguments

  • response - A byte slice containing the server’s response.

§Returns

An option containing the UNIX timestamp if found and successfully parsed, or None otherwise.