Safe Sprinkler
Master/slave irrigation system (ESP-NOW + LoRaWAN)
Loading...
Searching...
No Matches
wifi.h
Go to the documentation of this file.
1#ifndef WIFI_H
2#define WIFI_H
3
4#include "esp_err.h"
5
6#define STATIC_IP_ADDR "10.10.10.10"
7
8#define DEFAULT_CHAN 1
9#define MIN_WPA2_PW_LEN 8
10#define DEFAULT_SSID "NODE AP"
11
12#define DEFAULT_PW "" // at least 8 chars to make access point password
13
21esp_err_t wifi_init_sta(void);
22
30esp_err_t wifi_switch_apsta(void);
31
39esp_err_t wifi_switch_sta(void);
40
41#endif
int wifi_switch_apsta(void)
Switch from STA to APSTA (station + access point)
int wifi_init_sta(void)
Initialize WiFi in STA (station) mode.
int wifi_switch_sta(void)
Switch from APSTA back to STA only.