ChaosDMX
Open-Source DMX-Interface
Loading...
Searching...
No Matches
wifi.h File Reference
#include "esp_err.h"
Include dependency graph for wifi.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

esp_err_t wifi_start_ap (const char *ssid, const char *password, uint8_t channel, uint8_t max_connections)
 Start WiFi Access Point (AP) mode.
void wifi_stop_ap (void)
 Stop WiFi Access Point (AP) mode.

Function Documentation

◆ wifi_start_ap()

esp_err_t wifi_start_ap ( const char * ssid,
const char * password,
uint8_t channel,
uint8_t max_connections )

Start WiFi Access Point (AP) mode.

Initializes and starts the WiFi AP with the given SSID and password.

Parameters
ssidSSID for the AP (1-32 characters)
passwordPassword for the AP (min. 8 characters, optional)
channelWiFi channel to use
max_connectionsMaximum number of client connections
Returns
ESP_OK on success, ESP_ERR_INVALID_ARG or other error codes on failure

Definition at line 29 of file wifi.c.

References LOGI, and s_wifi_started.

Referenced by app_main().

Here is the caller graph for this function:

◆ wifi_stop_ap()

void wifi_stop_ap ( void )

Stop WiFi Access Point (AP) mode.

Deinitializes and stops the WiFi AP.

Definition at line 96 of file wifi.c.

References LOGI, and s_wifi_started.