Skip to content

Commit 1617b67

Browse files
committed
Add EthernetConnectionHandler inside How-to-use section
1 parent 615bab5 commit 1617b67

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ Library for handling and managing network connections by providing keep-alive fu
1717
```C++
1818
#include <Arduino_ConnectionHandler.h>
1919
/* ... */
20-
#if defined(BOARD_HAS_WIFI)
20+
#if defined(BOARD_HAS_ETHERNET)
21+
EthernetConnectionHandler conMan;
22+
#elif defined(BOARD_HAS_WIFI)
2123
WiFiConnectionHandler conMan("SECRET_SSID", "SECRET_PASS");
2224
#elif defined(BOARD_HAS_GSM)
2325
GSMConnectionHandler conMan("SECRET_PIN", "SECRET_APN", "SECRET_GSM_LOGIN", "SECRET_GSM_PASS");

0 commit comments

Comments
 (0)