Skip to content

Commit 3f0a01a

Browse files
committed
fona: switch _port references to _mqtt_port
1 parent 00352f8 commit 3f0a01a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

AdafruitIO_FONA.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ class AdafruitIO_FONA : public AdafruitIO {
3333
{
3434
_serial = new SoftwareSerial(FONA_TX, FONA_RX);
3535
_fona = new Adafruit_FONA(FONA_RST);
36-
_mqtt = new Adafruit_MQTT_FONA(_fona, _host, _port);
36+
_mqtt = new Adafruit_MQTT_FONA(_fona, _host, _mqtt_port);
3737
_packetread_timeout = 500;
3838
}
3939

4040
AdafruitIO_FONA(const __FlashStringHelper *user, const __FlashStringHelper *key):AdafruitIO(user, key)
4141
{
4242
_serial = new SoftwareSerial(FONA_TX, FONA_RX);
4343
_fona = new Adafruit_FONA(FONA_RST);
44-
_mqtt = new Adafruit_MQTT_FONA(_fona, _host, _port);
44+
_mqtt = new Adafruit_MQTT_FONA(_fona, _host, _mqtt_port);
4545
_packetread_timeout = 500;
4646
}
4747

@@ -69,7 +69,7 @@ class AdafruitIO_FONA : public AdafruitIO {
6969
}
7070

7171
protected:
72-
uint16_t _port = 1883;
72+
uint16_t _mqtt_port = 1883;
7373

7474
SoftwareSerial *_serial;
7575
Adafruit_FONA *_fona;

0 commit comments

Comments
 (0)