File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -145,12 +145,12 @@ const __FlashStringHelper* AdafruitIO::statusText()
145
145
}
146
146
}
147
147
148
- void AdafruitIO::run ()
148
+ void AdafruitIO::run (uint16_t busywait_ms )
149
149
{
150
150
// loop until we have a connection
151
151
while (mqttStatus () != AIO_CONNECTED){}
152
152
153
- _mqtt->processPackets (1000 );
153
+ _mqtt->processPackets (busywait_ms );
154
154
155
155
// ping to keep connection alive if needed
156
156
if (millis () > (_last_ping + AIO_PING_INTERVAL)) {
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ class AdafruitIO {
33
33
void connect (const char *user, const char *key);
34
34
void connect (const __FlashStringHelper *user, const __FlashStringHelper *key);
35
35
36
- void run ();
36
+ void run (uint16_t busywait_ms = 100 );
37
37
38
38
AdafruitIO_Feed* feed (const char *name);
39
39
AdafruitIO_Feed* feed (const __FlashStringHelper *name);
You can’t perform that action at this time.
0 commit comments