-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWifi.h
40 lines (36 loc) · 1.06 KB
/
Wifi.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef Wifi_h
#define Wifi_h
#include "Arduino.h"
#include "SoftwareSerial.h"
class Wifi {
public:
Wifi();
String checkStartup();
String restart();
String checkVersion();
String checkMode();
String changeMode(int mode);
String scanNetworks();
String connect(String ssid, String pass);
String connectedNetwork();
String disconnect();
String setStaticIP(String ip, String gate, String mask);
String checkStaticIP();
String checkAPConfig();
String setAPConfig(String ssid, String pass, int channel, int encryption);
String connectedDevices();
String connectionStatus();
String startConnection(String type, String ip, int port);
String startConnection(String type, String ip, int port, int linkid);
String send(String data);
String stopConnection();
String getIP();
String setAutoConnect(int mode);
String checkMultiConnect();
String setMultiConnect(int mode);
String setServer(int mode);
String setDHCP(int mode, int setting);
private:
SoftwareSerial *ESPSerial;
};
#endif