Skip to content

Commit 0c0beb2

Browse files
author
brentru
committed
replace ethernet2 with ethernet lib
1 parent ac625aa commit 0c0beb2

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ script:
2121
# build ESP8266 target
2222
- build_platform esp8266
2323
# build SAMD target
24-
- arduino --install-library "WiFi101"
24+
- arduino --install-library "WiFi101, Ethernet"
2525
- build_platform zero

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
arduino {
22
verify = false
33
platforms = ["esp8266:esp8266", "esp32:esp32", "adafruit:avr", "arduino:samd", "adafruit:samd"]
4-
libraries = ["Adafruit MQTT Library", "Adafruit FONA Library", "Ethernet2", "WiFi101"]
4+
libraries = ["Adafruit MQTT Library", "Adafruit FONA Library", "Ethernet", "WiFi101"]
55
boards = ["ESP8266", "M0_WINC1500", "WICED", "MKR1000", "M0_ETHERNETWING", "FONA_32U4", "ESP32"]
66
}

docs/dependencies.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@ Adafruit Ethernet FeatherWing
6060
The Ethernet FeatherWing will also require a 32u4, M0, or ESP8266 based Feather. Any Arduino cores
6161
required by the host Feather board will also be required.
6262

63-
* Latest version of the `Adafruit Ethernet2 Library <https://github.com/adafruit/Ethernet2>`_
63+
* Latest version of the `Ethernet Library <https://github.com/arduino-libraries/Ethernet>`_
6464
* Latest version of the `Adafruit MQTT Library <https://github.com/adafruit/Adafruit_MQTT_Library>`_
6565
* Latest version of the `Arduino HTTP Client Library <https://github.com/arduino-libraries/ArduinoHttpClient>`_

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Adafruit IO Arduino
2-
version=2.7.23
2+
version=2.7.3
33
author=Adafruit
44
maintainer=Adafruit <adafruitio@adafruit.com>
55
sentence=Arduino library to access Adafruit IO.

src/AdafruitIO_Ethernet.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include "Adafruit_MQTT.h"
1818
#include "Adafruit_MQTT_Client.h"
1919

20-
#include <Ethernet2.h>
20+
#include <Ethernet.h>
2121
#include <EthernetClient.h>
2222
#include <Dns.h>
2323
#include <Dhcp.h>
@@ -31,7 +31,7 @@ class AdafruitIO_Ethernet : public AdafruitIO {
3131
AdafruitIO_Ethernet(const char *user, const char *key):AdafruitIO(user, key)
3232
{
3333
_client = new EthernetClient();
34-
_mqtt = new Adafruit_MQTT_Client(_client, _host, _mqtt_port);
34+
_mqtt = new Adafruit_MQTT_Client(_client, _host, _mqtt_port, _username, _key);
3535
_http = new HttpClient(*_client, _host, _http_port);
3636
}
3737

0 commit comments

Comments
 (0)