Module esp_ward::connectivity::wifi
source · Expand description
The functions for dealing with time and timestamps were taken from
experiments from my own project from the past - esp-clock-nostd
(available on: https://github.com/playfulFence/esp-clock-nostd/tree/main)
General knowledge about Wi-Fi was obtained from the esp-wifi
project available on https://github.com/esp-rs/esp-wifi/tree/main
Constants§
- Represents the IP address for the WorldTime API server.
Functions§
- Creates a new socket for communication over WiFi.
- Extracts a UNIX timestamp from a server response.
- Receives a message over the specified socket.
- Retrieves the current time from the WorldTimeAPI.
- Retrieves the current time as a UNIX timestamp from the WorldTimeAPI.
- Converts a string IP address into a 4-byte array.
- Sends a request over the specified socket.
- Converts a UNIX timestamp into hours, minutes, and seconds.
- Gets a weekday from a UNIX timestamp