Skip to content

Commit 8448e87

Browse files
committed
Allow definition of custom network interfaces
1 parent 1789a18 commit 8448e87

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/WebSockets.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@
135135
#define NETWORK_UNOWIFIR4 (7)
136136
#define NETWORK_WIFI_NINA (8)
137137
#define NETWORK_SAMD_SEED (9)
138+
#define NETWORK_CUSTOM (10)
138139

139140
// max size of the WS Message Header
140141
#define WEBSOCKETS_MAX_HEADER_SIZE (14)
@@ -286,7 +287,7 @@
286287
#define WEBSOCKETS_NETWORK_CLASS WiFiClient
287288
#define WEBSOCKETS_NETWORK_SERVER_CLASS WiFiServer
288289

289-
#else
290+
#elif(WEBSOCKETS_NETWORK_TYPE != NETWORK_CUSTOM)
290291
#error "no network type selected!"
291292
#endif
292293

0 commit comments

Comments
 (0)