Skip to content

Commit f3607ae

Browse files
author
brentru
committed
add protected mqtt_eth port, keep mqtt_port as-is
1 parent 2e78a0e commit f3607ae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/AdafruitIO.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ class AdafruitIO {
7878

7979
const char *_host = "io.adafruit.com";
8080
uint16_t _mqtt_port = 8883;
81+
uint16_t _mqtt_eth_port = 1883;
8182
uint16_t _http_port = 443;
8283

8384
uint16_t _packetread_timeout;

src/AdafruitIO_Ethernet.h

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

0 commit comments

Comments
 (0)