File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -31,13 +31,15 @@ class AdafruitIO_Ethernet : public AdafruitIO {
31
31
AdafruitIO_Ethernet (const char *user, const char *key):AdafruitIO(user, key)
32
32
{
33
33
_client = new EthernetClient ();
34
- _mqtt = new Adafruit_MQTT_Client (_client, _host, _port);
34
+ _mqtt = new Adafruit_MQTT_Client (_client, _host, _mqtt_port);
35
+ _http = new HttpClient (*_client, _host, _http_port);
35
36
}
36
37
37
38
AdafruitIO_Ethernet (const __FlashStringHelper *user, const __FlashStringHelper *key):AdafruitIO(user, key)
38
39
{
39
40
_client = new EthernetClient ();
40
- _mqtt = new Adafruit_MQTT_Client (_client, _host, _port);
41
+ _mqtt = new Adafruit_MQTT_Client (_client, _host, _mqtt_port);
42
+ _http = new HttpClient (*_client, _host, _http_port);
41
43
}
42
44
43
45
aio_status_t networkStatus ()
You can’t perform that action at this time.
0 commit comments