|
ENTS-tock
Environmental NeTworked Sensor firmware on Tock OS
|
WiFi interface implementation with the esp32. More...
#include <stdbool.h>#include <stddef.h>#include <stdint.h>Go to the source code of this file.
Data Structures | |
| struct | ControllerWiFiResponse |
| WiFi response. More... | |
Enumerations | |
| enum | ControllerWiFiStatus { CONTROLLER_WIFI_NO_SHIELD = 255 , CONTROLLER_WIFI_IDLE_STATUS = 0 , CONTROLLER_WIFI_NO_SSID_AVAIL , CONTROLLER_WIFI_SCAN_COMPLETED , CONTROLLER_WIFI_CONNECTED , CONTROLLER_WIFI_CONNECT_FAILED , CONTROLLER_WIFI_CONNECTION_LOST , CONTROLLER_WIFI_DISCONNECTED } |
| WiFi status. More... | |
Functions | |
| bool | ControllerWiFiConnect (const char *ssid, const char *passwd) |
| Initialize WiFi settings on the esp32. | |
| bool | ControllerWiFiDisconnect (void) |
| Disconnects from the WiFi network. | |
| ControllerWiFiStatus | ControllerWiFiCheckWiFi (void) |
| Checks the current status of WiFi. | |
| bool | ControllerWiFiNtpSync (void) |
| Triggers a NTP sync with the server. | |
| uint32_t | ControllerWiFiTime (void) |
| Get the current time from the NTP server. | |
| bool | ControllerWiFiCheckApi (const char *url) |
| Queries the API endpoint to check if it is reachable. | |
| bool | ControllerWiFiPost (const uint8_t *data, size_t data_len) |
| Post data to the configured endpoint. | |
| ControllerWiFiResponse | ControllerWiFiCheckRequest (void) |
| Checks the status of the most recent HTTP request. | |
| bool | ControllerWiFiHost (const char *ssid, const char *passwd) |
| Sets the esp32 as a WiFi access point. | |
| bool | ControllerWiFiStopHost (void) |
| Stops the esp32 from acting as a WiFi access point. | |
| void | ControllerWiFiHostInfo (char *ssid, char *ip, char *mac, uint8_t *clients) |
| Gets information about the current access point. | |