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.
34 lines
940 B
34 lines
940 B
10 years ago
|
#ifndef CGIWIFI_H
|
||
|
#define CGIWIFI_H
|
||
|
|
||
6 years ago
|
#include "httpd/httpd.h"
|
||
10 years ago
|
|
||
10 years ago
|
enum { wifiIsDisconnected, wifiIsConnected, wifiGotIP };
|
||
9 years ago
|
typedef void(*WifiStateChangeCb)(uint8_t wifiStatus);
|
||
10 years ago
|
|
||
10 years ago
|
int cgiWiFiScan(HttpdConnData *connData);
|
||
10 years ago
|
int cgiWifiInfo(HttpdConnData *connData);
|
||
10 years ago
|
int cgiWiFi(HttpdConnData *connData);
|
||
|
int cgiWiFiConnect(HttpdConnData *connData);
|
||
10 years ago
|
int cgiWiFiSetMode(HttpdConnData *connData);
|
||
|
int cgiWiFiConnStatus(HttpdConnData *connData);
|
||
10 years ago
|
int cgiWiFiSpecial(HttpdConnData *connData);
|
||
9 years ago
|
int cgiApSettingsChange(HttpdConnData *connData);
|
||
|
int cgiApSettingsInfo(HttpdConnData *connData);
|
||
9 years ago
|
void configWifiIP();
|
||
10 years ago
|
void wifiInit(void);
|
||
9 years ago
|
void wifiAddStateChangeCb(WifiStateChangeCb cb);
|
||
9 years ago
|
void wifiStartMDNS(struct ip_addr);
|
||
9 years ago
|
int checkString(char *str);
|
||
10 years ago
|
|
||
9 years ago
|
extern uint8_t wifiState;
|
||
9 years ago
|
extern bool mdns_started;
|
||
9 years ago
|
|
||
8 years ago
|
int wifiGetApCount();
|
||
|
void wifiGetApName(int, char *);
|
||
|
int wifiSignalStrength(int);
|
||
|
void connectToNetwork(char *, char *);
|
||
|
void wifiStartScan();
|
||
|
|
||
10 years ago
|
#endif
|