We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b158675 + e7d88ad commit 9890d87Copy full SHA for 9890d87
libraries/Ethernet/src/Ethernet.h
@@ -42,6 +42,14 @@ enum EthernetHardwareStatus {
42
43
namespace arduino {
44
45
+enum { // compatibility with Arduino ::maintain()
46
+ DHCP_CHECK_NONE = 0,
47
+ DHCP_CHECK_RENEW_FAIL = 1,
48
+ DHCP_CHECK_RENEW_OK = 2,
49
+ DHCP_CHECK_REBIND_FAIL = 3,
50
+ DHCP_CHECK_REBIND_OK = 4
51
+};
52
+
53
typedef void *(*voidPrtFuncPtr)(void);
54
55
class EthernetClass : public MbedSocketClass {
@@ -107,6 +115,8 @@ class EthernetClass : public MbedSocketClass {
107
115
108
116
NetworkInterface *getNetwork();
109
117
118
+ constexpr static int maintain () { return DHCP_CHECK_NONE; }
119
110
120
private:
111
121
volatile EthernetLinkStatus _currentNetworkStatus = Unknown;
112
122
EthernetInterface net;
0 commit comments