mirror of https://github.com/jeelabs/esp-link.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
940 B
33 lines
940 B
#ifndef CGIWIFI_H
|
|
#define CGIWIFI_H
|
|
|
|
#include "httpd/httpd.h"
|
|
|
|
enum { wifiIsDisconnected, wifiIsConnected, wifiGotIP };
|
|
typedef void(*WifiStateChangeCb)(uint8_t wifiStatus);
|
|
|
|
int cgiWiFiScan(HttpdConnData *connData);
|
|
int cgiWifiInfo(HttpdConnData *connData);
|
|
int cgiWiFi(HttpdConnData *connData);
|
|
int cgiWiFiConnect(HttpdConnData *connData);
|
|
int cgiWiFiSetMode(HttpdConnData *connData);
|
|
int cgiWiFiConnStatus(HttpdConnData *connData);
|
|
int cgiWiFiSpecial(HttpdConnData *connData);
|
|
int cgiApSettingsChange(HttpdConnData *connData);
|
|
int cgiApSettingsInfo(HttpdConnData *connData);
|
|
void configWifiIP();
|
|
void wifiInit(void);
|
|
void wifiAddStateChangeCb(WifiStateChangeCb cb);
|
|
void wifiStartMDNS(struct ip_addr);
|
|
int checkString(char *str);
|
|
|
|
extern uint8_t wifiState;
|
|
extern bool mdns_started;
|
|
|
|
int wifiGetApCount();
|
|
void wifiGetApName(int, char *);
|
|
int wifiSignalStrength(int);
|
|
void connectToNetwork(char *, char *);
|
|
void wifiStartScan();
|
|
|
|
#endif
|
|
|