Skip to content

Commit 51735f2

Browse files
committed
drop fona packet read timeout from 1000ms to 500ms
1 parent f98920e commit 51735f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

AdafruitIO_FONA.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ AdafruitIO_FONA::AdafruitIO_FONA(const char *user, const char *key):AdafruitIO(u
1414
_serial = new SoftwareSerial(FONA_TX, FONA_RX);
1515
_fona = new Adafruit_FONA(FONA_RST);
1616
_mqtt = new Adafruit_MQTT_FONA(_fona, _host, _port);
17-
_packetread_timeout = 1000;
17+
_packetread_timeout = 500;
1818
}
1919

2020
AdafruitIO_FONA::AdafruitIO_FONA(const __FlashStringHelper *user, const __FlashStringHelper *key):AdafruitIO(user, key)
2121
{
2222
_serial = new SoftwareSerial(FONA_TX, FONA_RX);
2323
_fona = new Adafruit_FONA(FONA_RST);
2424
_mqtt = new Adafruit_MQTT_FONA(_fona, _host, _port);
25-
_packetread_timeout = 1000;
25+
_packetread_timeout = 500;
2626
}
2727

2828
void AdafruitIO_FONA::setAPN(FONAFlashStringPtr apn, FONAFlashStringPtr username=0, FONAFlashStringPtr password=0)

0 commit comments

Comments
 (0)