How to disconnected Wifi on Photon

I use SYSTEM_MODE(MANAUL) & SYSTEM_THREAD(ENABLED).
After photon connect Wi-Fi.I would like to disconnect a Wi-Fi(WiFi.disconnect()).
but it always blinking green and connect Wi-Fi again.How can I Fix it?

Welcome to the community :+1:

What device OS version are you running?
Although I’d consider this a bug you can work around it by adding a Particle.disconnect() before the WiFi.disconnect() call.

I filed a support ticket and opened a GitHub issue

It’s work.thank you so much. :grin:

1 Like