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

Breaks network on-going network connection when Sleep stop mode is called #1125

Merged
merged 1 commit into from
Oct 17, 2016

Conversation

sergeuz
Copy link
Member

@sergeuz sergeuz commented Sep 23, 2016

Original Title: Uninitialize WICED's WLAN module when turning off the WiFi. Changed after reverting the connectivity_deinit() call.

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:

  • Contributor has signed CLA
  • Problem and Solution clearly stated
  • Code peer reviewed
  • API tests compiled
  • Run unit/integration/application tests on device
  • Add documentation (N/A)
  • Add to CHANGELOG.md after merging (add links to docs and issues)

Enhancement

  • [PR #1125] Breaks on-going network connection when Sleep stop mode is called, thereby speeding up the time to entering sleep when using SYSTEM_THREAD(ENABLED).

#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);
Copy link
Member Author

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.

@sergeuz sergeuz added this to the 0.7.x milestone Oct 11, 2016
…ivity; cancel active connection attempt to unblock the system thread
Copy link
Member

@technobly technobly left a 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.

@technobly technobly merged commit 69aadf5 into develop Oct 17, 2016
@technobly technobly deleted the fix/stop_mode_power branch October 17, 2016 00:26
@technobly technobly removed their assignment Oct 17, 2016
@technobly technobly modified the milestones: 0.7.x, 0.6.1 Nov 29, 2016
technobly added a commit that referenced this pull request Dec 20, 2016
technobly added a commit that referenced this pull request Dec 20, 2016
@technobly technobly changed the title Uninitialize WICED's WLAN module when turning off the WiFi Breaks network on-going network connection when Sleep stop mode is called Dec 20, 2016
avtolstoy added a commit that referenced this pull request May 10, 2017
…ivity; cancel active connection attempt to unblock the system thread (see #1125)
@avtolstoy avtolstoy mentioned this pull request May 10, 2017
6 tasks
technobly added a commit that referenced this pull request May 10, 2017
avtolstoy added a commit to avtolstoy/firmware that referenced this pull request May 10, 2017
…ivity; cancel active connection attempt to unblock the system thread (see particle-iot#1125)
avtolstoy pushed a commit to avtolstoy/firmware that referenced this pull request May 10, 2017
sergeuz pushed a commit that referenced this pull request Jun 4, 2017
…ivity; cancel active connection attempt to unblock the system thread (see #1125)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants