Unsure why the loop() operation would block when my AP goes down?
What am I missing?
#include "Particle.h"
SYSTEM_MODE(AUTOMATIC); // default, but explicitly declared
SYSTEM_THREAD(ENABLED);
uint32_t now;
uint32_t lastMsg;
void setup() {}
void loop()
{
now = millis();
if (now - lastMsg > 100)
{
Serial.printlnf("100 ms of loop / %d", now);
lastMsg = now;
}
}
Additional info bullets:
- DevOS v1.5.2
- Ubiquiti AC Pro AP that I can gate on/off at will
- Repeats Reliably / Runs for ~3 secs / Blocks for ~2 secs
- Single WiFi provisional instance in Argon (can’t failover to router WiFi when AP is off)