|
ENTS-tock
Environmental NeTworked Sensor firmware on Tock OS
|
Go to the source code of this file.
Functions | |
| ControllerStatus | WiFiCommandTransaction (const WiFiCommand *input, WiFiCommand *output) |
| 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. | |
| ControllerStatus WiFiCommandTransaction | ( | const WiFiCommand * | input, |
| WiFiCommand * | output | ||
| ) |
Definition at line 9 of file wifi.c.
References CONTROLLER_ERROR, CONTROLLER_SUCCESS, ControllerRx(), ControllerTransaction(), ControllerTx(), Buffer::data, DecodeEsp32Command(), EncodeWiFiCommand(), Buffer::len, and Buffer::size.
Referenced by ControllerWiFiCheckApi(), ControllerWiFiCheckRequest(), ControllerWiFiCheckWiFi(), ControllerWiFiConnect(), ControllerWiFiDisconnect(), ControllerWiFiHost(), ControllerWiFiHostInfo(), ControllerWiFiNtpSync(), ControllerWiFiPost(), ControllerWiFiStopHost(), and ControllerWiFiTime().