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

Implement functions to retrieve multiple connected devices#105

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
polldo wants to merge6 commits intoarduino-libraries:master
base:master
Choose a base branch
Loading
frompolldo:multi-connection

Conversation

polldo
Copy link
Contributor

These functions can be used to loop the connected devices, centrals or peripherals, through an index that can go from 0 to the maximum number of connected devices allowed.
Example:

for (int periphIdx =0; periphIdx < BLE.peripheralCount(); periphIdx++) {    BLEDevice peripheral = BLE.peripheral(periphIdx);if (peripheral) {    BLECharacteristic batteryLevelChar = peripheral.characteristic("2A19");if (!batteryLevelChar) {            Serial.println("Peripheral does not have battery level characteristic!");            peripheral.disconnect();        }    }}

tomaculum reacted with thumbs up emoji
@CLAassistant
Copy link

CLAassistant commentedApr 9, 2021
edited
Loading

CLA assistant check
All committers have signed the CLA.

alranel added a commit to rduino-libraries/rduinoBLE that referenced this pull requestMay 7, 2022
@phyxl
Copy link

I need this functionality for my project. Has this library lost support?

@per1234per1234 added type: enhancementProposed improvement topic: codeRelated to content of the project itself labelsAug 7, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@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.

5 participants
@polldo@CLAassistant@phyxl@per1234@giulcioffi

[8]ページ先頭

©2009-2025 Movatter.jp