@@ -6,17 +6,20 @@ Arduino Library for network connections management
6
6
[ ![ Spell Check status] ( https://github.com/arduino-libraries/Arduino_ConnectionHandler/actions/workflows/spell-check.yml/badge.svg )] ( https://github.com/arduino-libraries/Arduino_ConnectionHandler/actions/workflows/spell-check.yml )
7
7
8
8
Library for handling and managing network connections by providing keep-alive functionality and automatic reconnection in case of connection-loss. It supports the following boards:
9
- * ** WiFi** : [ ` MKR 1000 ` ] ( https://store.arduino.cc/arduino-mkr1000-wifi ) , [ ` MKR WiFi 1010 ` ] ( https://store.arduino.cc/arduino-mkr-wifi-1010 ) , [ ` Nano 33 IoT ` ] ( https://store.arduino.cc/arduino-nano-33-iot ) , [ ` Portenta H7 ` ] ( https://store.arduino.cc/products/portenta-h7 ) , [ ` Nano RP2040 Connect ` ] ( https://store.arduino.cc/products/arduino-nano-rp2040-connect ) , [ ` Nicla Vision ` ] ( https://store.arduino.cc/products/nicla-vision ) , ` ESP8266 `
9
+ * ** WiFi** : [ ` MKR 1000 ` ] ( https://store.arduino.cc/arduino-mkr1000-wifi ) , [ ` MKR WiFi 1010 ` ] ( https://store.arduino.cc/arduino-mkr-wifi-1010 ) , [ ` Nano 33 IoT ` ] ( https://store.arduino.cc/arduino-nano-33-iot ) , [ ` Portenta H7 ` ] ( https://store.arduino.cc/products/portenta-h7 ) , [ ` Nano RP2040 Connect ` ] ( https://store.arduino.cc/products/arduino-nano-rp2040-connect ) , [ ` Nicla Vision ` ] ( https://store.arduino.cc/products/nicla-vision ) , [ ` ESP8266 ` ] ( https://github.com/esp8266/Arduino/releases/tag/2.5.0 ) , [ ` ESP32 ` ] ( https://github.com/espressif/arduino-esp32 )
10
10
* ** GSM** : [ ` MKR GSM 1400 ` ] ( https://store.arduino.cc/arduino-mkr-gsm-1400-1415 )
11
11
* ** 5G** : [ ` MKR NB 1500 ` ] ( https://store.arduino.cc/arduino-mkr-nb-1500-1413 )
12
12
* ** LoRa** : [ ` MKR WAN 1300/1310 ` ] ( https://store.arduino.cc/mkr-wan-1310 )
13
+ * ** Ethernet** : [ ` Portenta H7 ` ] ( https://store.arduino.cc/products/portenta-h7 ) + [ ` Vision Shield Ethernet ` ] ( https://store.arduino.cc/products/arduino-portenta-vision-shield-ethernet ) , [ ` Max Carrier ` ] ( https://store.arduino.cc/products/portenta-max-carrier ) , [ ` Breakout ` ] ( https://store.arduino.cc/products/arduino-portenta-breakout ) , [ ` Portenta Machine Control ` ] ( https://store.arduino.cc/products/arduino-portenta-machine-control )
13
14
14
15
### How-to-use
15
16
16
17
``` C++
17
18
#include < Arduino_ConnectionHandler.h>
18
19
/* ... */
19
- #if defined(BOARD_HAS_WIFI)
20
+ #if defined(BOARD_HAS_ETHERNET)
21
+ EthernetConnectionHandler conMan;
22
+ #elif defined(BOARD_HAS_WIFI)
20
23
WiFiConnectionHandler conMan("SECRET_SSID", "SECRET_PASS");
21
24
#elif defined(BOARD_HAS_GSM)
22
25
GSMConnectionHandler conMan("SECRET_PIN", "SECRET_APN", "SECRET_GSM_LOGIN", "SECRET_GSM_PASS");
0 commit comments