Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Increase server name length in MQTT_FONA.h
- Increase the amount of characters to copy server name in the
`connectServer` method from 40 to 60 to allow connecting to servers
with a slightly longer FQDN
  • Loading branch information
CharlMeyers committed Jul 2, 2021
commit c6596c01aa948e744de4c9ec0bab19e68100277d
4 changes: 2 additions & 2 deletions Adafruit_MQTT_FONA.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ class Adafruit_MQTT_FONA : public Adafruit_MQTT {

protected:
bool connectServer() override {
char server[40];
strncpy(server, servername, 40);
char server[60];
strncpy(server, servername, 60);
#ifdef ADAFRUIT_SLEEPYDOG_H
Watchdog.reset();
#endif
Expand Down