Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.8.0-rc.1 Photon: Particle.connected does not sense lost internet #1479

Closed
ScruffR opened this issue Jan 23, 2018 · 2 comments · Fixed by #1492
Labels
Milestone

Comments

@ScruffR
Copy link
Contributor

@ScruffR ScruffR commented Jan 23, 2018

Bug Report

I've got my Photon connected to an AP which in turn is connected to a cable modem to hook onto the internet. When powering down the AP connection loss is detected virtually immediately and after switching the AP back on connection is reestablished.
But when powering down the cable modem so that the WiFi connection persists, the device never stops breathing cyan and Particle.connected() keeps returning true.
Even worse, even after switching the cable modem back on, the connection will never be reestablished, since the system doesn't see need for it.

Up to 0.7.0-rc.6 things worked as expected.

Test App

SYSTEM_MODE(SEMI_AUTOMATIC)
SYSTEM_THREAD(ENABLED)

void setup() {
    WiFi.on();
    Particle.connect();
    pinMode(D7, OUTPUT);
}

void loop() {
    digitalWrite(D7, Particle.connected());
}
@elcojacobs

This comment has been minimized.

Copy link
Contributor

@elcojacobs elcojacobs commented Feb 22, 2018

I wanted to try whether the behavior was still present on 0.8.0-rc.2. But for good measure, I first tried it on 0.7.0-rc.6 and got an SOS when I switched the WiFi channel. Wow.

My test against 0.8.0-rc.2 showed correct behavior (RGB LED status and D7 status).

@elcojacobs

This comment has been minimized.

Copy link
Contributor

@elcojacobs elcojacobs commented Feb 22, 2018

Misunderstood the bug, you have 2 modems and are not taking down WiFi, just Internet.
When I unplug the WAN cable from my router, the photon is indeed unaware on 0.8.0-rc.1. Bug confirmed.

When I try the same on 0.8.0-rc.2, same result.

avtolstoy added a commit that referenced this issue Feb 28, 2018
@technobly technobly added this to the 0.8.0-rc.3 milestone Apr 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.