We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31cd2b1 commit 3a08cd0Copy full SHA for 3a08cd0
2 files changed
ArduinoCore-Linux/cores/arduino/Ethernet.h
@@ -194,6 +194,8 @@ class EthernetClient : public Client {
194
195
void setInsecure() {}
196
197
+ int fd() { return sock.fd(); }
198
+
199
protected:
200
const char* WIFICLIENT = "EthernetClient";
201
SocketImpl sock;
ArduinoCore-Linux/cores/arduino/SocketImpl.h
@@ -35,6 +35,8 @@ class SocketImpl {
35
// determines the IP Adress
36
const char* getIPAddress(const char* validEntries[]);
37
38
+ int fd() { return sock; }
39
40
41
bool is_connected = false;
42
int sock = -1, valread;
0 commit comments