|
|
ChaosDMX
Open-Source DMX-Interface
|
#include <string.h>#include "esp_event.h"#include "esp_netif.h"#include "esp_wifi.h"#include "logger.h"#include "nvs_flash.h"#include "wifi.h"Go to the source code of this file.
Macros | |
| #define | LOG_TAG "WIFI" |
| "WIFI" log tag for 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. | |
Variables | |
| static bool | s_wifi_started = false |
| Indicates whether the WiFi AP is started. | |
| 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.
| ssid | SSID for the AP (1-32 characters) |
| password | Password for the AP (min. 8 characters, optional) |
| channel | WiFi channel to use |
| max_connections | Maximum number of client connections |
Definition at line 29 of file wifi.c.
References LOGI, and s_wifi_started.
Referenced by app_main().
| 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.
|
static |
Indicates whether the WiFi AP is started.
Definition at line 15 of file wifi.c.
Referenced by wifi_start_ap(), and wifi_stop_ap().