-
Notifications
You must be signed in to change notification settings - Fork 513
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
Breaks network on-going network connection when Sleep stop mode is called #1125
Conversation
#ifndef SPARK_NO_CLOUD | ||
wakeupState.cloud = spark_cloud_flag_auto_connect(); | ||
#endif | ||
wakeupState.wifi = !SPARK_WLAN_SLEEP; | ||
wakeupState.wifiConnected = wakeupState.cloud || network_ready(0, 0, NULL) || network_connecting(0, 0, NULL); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've noticed that wakeupState.cloud
was used before initialization previously.
…ivity; cancel active connection attempt to unblock the system thread
ba6f212
to
e27362f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on Photon and P1. Current is now 10-15mA lower than before when device enters sleep stop mode during the Wi-Fi connection attempt.
…ivity; cancel active connection attempt to unblock the system thread (see #1125)
…ivity; cancel active connection attempt to unblock the system thread (see particle-iot#1125)
…rt-of-1125 Bring back part of particle-iot#1125
…ivity; cancel active connection attempt to unblock the system thread (see #1125)
Breaks network on-going network connection when Sleep stop mode is called, thereby speeding up the time to entering sleep when using SYSTEM_THREAD(ENABLED).
Doneness:
Enhancement