Commit f3d1eb6
committed
allow mqttStatus() to return without waiting for connection
Old version would delay(AIO_THROTTLE_RECONNECT_INTERVAL) before returning. This could leave the sketch stuck in limbo for 60 seconds.
Modification remembers last try at connection and doesn't try again until the interval has passed.1 parent 4639a9f commit f3d1eb6
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
| 233 | + | |
| 234 | + | |
234 | 235 | | |
235 | 236 | | |
236 | 237 | | |
| |||
248 | 249 | | |
249 | 250 | | |
250 | 251 | | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
251 | 256 | | |
| 257 | + | |
252 | 258 | | |
253 | 259 | | |
254 | 260 | | |
| |||
260 | 266 | | |
261 | 267 | | |
262 | 268 | | |
263 | | - | |
264 | | - | |
265 | 269 | | |
266 | 270 | | |
267 | 271 | | |
| |||
0 commit comments