Skip to content

Commit 2e78a0e

Browse files
author
brentru
committed
only connect eth on port 8883, leave wifi port as 1883
1 parent eee0664 commit 2e78a0e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/AdafruitIO.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class AdafruitIO {
7777
char _version[10];
7878

7979
const char *_host = "io.adafruit.com";
80-
uint16_t _mqtt_port = 1883;
80+
uint16_t _mqtt_port = 8883;
8181
uint16_t _http_port = 443;
8282

8383
uint16_t _packetread_timeout;

src/AdafruitIO_Ethernet.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ class AdafruitIO_Ethernet : public AdafruitIO
3232
AdafruitIO_Ethernet(const char *user, const char *key) : AdafruitIO(user, key)
3333
{
3434
_client = new EthernetClient();
35-
_mqtt = new Adafruit_MQTT_Client(_client, _host, _mqtt_port, _username, _key);
35+
uint16_t _eth_mqtt_port = 8883;
36+
_mqtt = new Adafruit_MQTT_Client(_client, _host, _eth_mqtt_port, _username, _key);
3637
_http = new HttpClient(*_client, _host, _http_port);
3738
}
3839

0 commit comments

Comments
 (0)