ENTS-tock
Environmental NeTworked Sensor firmware on Tock OS
Loading...
Searching...
No Matches
wifi.c File Reference
#include "wifi.h"
#include "../../proto/transcoder.h"
#include "../communication.h"

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.
 

Function Documentation

◆ WiFiCommandTransaction()