Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add function to manage low power mode status#327

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
leonardocavagnis wants to merge5 commits intoarduino-libraries:master
base:master
Choose a base branch
Loading
fromleonardocavagnis:ble_local_lp_mode

Conversation

leonardocavagnis
Copy link
Contributor

@leonardocavagnisleonardocavagnis commentedOct 11, 2023
edited
Loading

Adding the functionBLE.setLowPowerMode(bool) to manage the lower power mode status of the BLE chip.

The functionBLE.setLowPowerMode(bool)(true: to enable,false: to disable) must be called before executing theBLE.begin() function. Using this function after the BLE stack initialization will not have any effect.
The function does not directly control the entry and exit from low power mode but enables or disables the chip's feature.

Low power mode is enabled by default.

@sebromero Check it out if function name sounds good. Another proposal could be using two different functions:enableLowPowerMode() anddisableLowPowerMode().

This PR is based on thearduino/mbed-os PR #32.

Copy link

@sebromerosebromero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thank you for the PR! I'd recommend naming the user facing functionsetLowPowerModeEnabled or as discusseddisableLowPowerMode() if re-enabling it makes no sense. For the other functions I suggest avoiding abbreviations that leave room for ambiguity.

leonardocavagnis reacted with thumbs up emoji
Co-authored-by: Sebastian Romero <s.romero.zh@gmail.com>
Co-authored-by: Sebastian Romero <s.romero.zh@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@sebromerosebromerosebromero requested changes

@facchinmfacchinmAwaiting requested review from facchinm

Assignees
No one assigned
Labels
topic: codeRelated to content of the project itselftype: enhancementProposed improvement
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

PMC freeze when using ArduinoBLE with Arduino_MachineControl included.
3 participants
@leonardocavagnis@sebromero@per1234

[8]ページ先頭

©2009-2025 Movatter.jp