- Notifications
You must be signed in to change notification settings - Fork 7.6k
/
Copy pathNetworkManager.h
34 lines (27 loc) · 813 Bytes
/
NetworkManager.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
/*
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include"NetworkEvents.h"
#include"NetworkInterface.h"
#include"IPAddress.h"
#include"WString.h"
classNetworkManager : publicNetworkEvents, publicPrintable {
public:
NetworkManager();
boolbegin();
inthostByName(constchar *aHostname, IPAddress &aResult);
uint8_t *macAddress(uint8_t *mac);
String macAddress();
boolsetDefaultInterface(NetworkInterface &ifc);
NetworkInterface *getDefaultInterface();
size_tprintTo(Print &out) const;
staticconstchar *getHostname();
staticboolsetHostname(constchar *hostname);
staticboolhostname(const String &aHostname) {
returnsetHostname(aHostname.c_str());
}
};
extern NetworkManager Network;