bool ControllerWiFiHost(const char *ssid, const char *passwd)
Sets the esp32 as a WiFi access point.
void ControllerWiFiHostInfo(char *ssid, char *ip, char *mac, uint8_t *clients)
Gets information about the current access point.
bool ControllerWiFiConnect(const char *ssid, const char *passwd)
Initialize WiFi settings on the esp32.
ControllerWiFiStatus ControllerWiFiCheckWiFi(void)
Checks the current status of WiFi.
bool ControllerWiFiCheckApi(const char *url)
Queries the API endpoint to check if it is reachable.
bool ControllerWiFiDisconnect(void)
Disconnects from the WiFi network.
bool ControllerWiFiNtpSync(void)
Triggers a NTP sync with the server.
ControllerWiFiStatus
WiFi status.
uint32_t ControllerWiFiTime(void)
Get the current time from the NTP server.
bool ControllerWiFiPost(const uint8_t *data, size_t data_len)
Post data to the configured endpoint.
bool ControllerWiFiStopHost(void)
Stops the esp32 from acting as a WiFi access point.
ControllerWiFiResponse ControllerWiFiCheckRequest(void)
Checks the status of the most recent HTTP request.
@ CONTROLLER_WIFI_CONNECTED
@ CONTROLLER_WIFI_IDLE_STATUS
@ CONTROLLER_WIFI_SCAN_COMPLETED
@ CONTROLLER_WIFI_CONNECTION_LOST
@ CONTROLLER_WIFI_NO_SHIELD
@ CONTROLLER_WIFI_CONNECT_FAILED
@ CONTROLLER_WIFI_DISCONNECTED
@ CONTROLLER_WIFI_NO_SSID_AVAIL