ESP_IOT v2.5
IOT ESP Coding
WiFi.h
Go to the documentation of this file.
1#ifdef NOT_FOR_SHOW_ONLY
2/*
3 WiFi.h - esp32 Wifi support.
4 Based on WiFi.h from Arduino WiFi shield library.
5 Copyright (c) 2011-2014 Arduino. All right reserved.
6 Modified by Ivan Grokhotkov, December 2014
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23#ifndef WiFi_h
24#define WiFi_h
25
26#include <stdint.h>
27
28#include "Print.h"
29#include "IPAddress.h"
30#include "IPv6Address.h"
31
32#include "WiFiType.h"
33#include "WiFiSTA.h"
34#include "WiFiAP.h"
35#include "WiFiScan.h"
36#include "WiFiGeneric.h"
37
38#include "WiFiClient.h"
39#include "WiFiServer.h"
40#include "WiFiUdp.h"
41
42class WiFiClass : public WiFiGenericClass, public WiFiSTAClass, public WiFiScanClass, public WiFiAPClass
43{
44private:
45 bool prov_enable;
46public:
47 WiFiClass()
48 {
49 prov_enable = false;
50 }
51
52 using WiFiGenericClass::channel;
53
54 using WiFiSTAClass::SSID;
55 using WiFiSTAClass::RSSI;
56 using WiFiSTAClass::BSSID;
57 using WiFiSTAClass::BSSIDstr;
58
59 using WiFiScanClass::SSID;
60 using WiFiScanClass::encryptionType;
61 using WiFiScanClass::RSSI;
62 using WiFiScanClass::BSSID;
63 using WiFiScanClass::BSSIDstr;
64 using WiFiScanClass::channel;
65public:
66 void printDiag(Print& dest);
67 friend class WiFiClient;
68 friend class WiFiServer;
69 friend class WiFiUDP;
70 void enableProv(bool status);
71 bool isProvEnabled();
72};
73
74extern WiFiClass WiFi;
75
76#endif
77
78
79#endif