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

Allow valueSize changes after initialization to adjust to MTU size#391

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
matpowel wants to merge3 commits intoarduino-libraries:master
base:master
Choose a base branch
Loading
frommatpowel:master

Conversation

@matpowel
Copy link

When trying to implement a BLE MIDI wrapper on top of ArduinoBLE I was losing data because the MTU negotiated with the server (in this case Apple Mac or iOS devices) was not matching the valueSize / buffer. Normally this might not be an issue but in the particular case of MIDI over BLE, the official spec and parsing of the data requires that packets are handled discreetly, so if the server thinks the packet size is X and we (the client) think it's Y then messages are sent incorrectly.

I suspect there are also other situations where matching the buffer size in the BLE parsing code and the MTU is better, more efficient and/or the only way to be accurate.

This implementation adds the methods necessary to resize, check the MTU size and be notified of MTU negotiation changes, but leaves the decision to resize up to the user of the library.

@CLAassistant
Copy link

CLAassistant commentedApr 9, 2025
edited
Loading

CLA assistant check
All committers have signed the CLA.

@codecov
Copy link

codecovbot commentedApr 9, 2025
edited
Loading

Codecov Report

Attention: Patch coverage is0% with23 lines in your changes missing coverage. Please review.

Project coverage is 9.56%. Comparing base(c91c02c) to head(d22a91c).
Report is 21 commits behind head on master.

Files with missing linesPatch %Lines
src/local/BLELocalCharacteristic.cpp0.00%8 Missing⚠️
src/local/BLELocalDevice.cpp0.00%6 Missing⚠️
src/BLECharacteristic.cpp0.00%5 Missing⚠️
src/BLEDevice.cpp0.00%2 Missing⚠️
src/utility/ATT.cpp0.00%2 Missing⚠️
Additional details and impacted files
@@            Coverage Diff            @@##           master    #391      +/-   ##=========================================- Coverage    9.62%   9.56%   -0.07%=========================================  Files          28      28                Lines        3656    3679      +23     =========================================  Hits          352     352- Misses       3304    3327      +23

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report?Share it here.

🚀 New features to boost your workflow:
  • ❄️Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link

Memory usage change @d22a91c

Boardflash%RAM for global variables%
arduino:mbed_nano:nano33ble🔺 +136 - +136+0.01 - +0.01🔺 +8 - +80.0 - 0.0
arduino:mbed_nano:nanorp2040connect🔺 +140 - +1400.0 - 0.0🔺 +8 - +80.0 - 0.0
arduino:megaavr:uno2018:mode=on🔺 +180 - +180+0.37 - +0.37🔺 +4 - +4+0.07 - +0.07
arduino:renesas_uno:unor4wifi🔺 +120 - +136+0.05 - +0.05🔺 +8 - +8+0.02 - +0.02
arduino:samd:mkrwifi1010🔺 +136 - +144+0.05 - +0.05🔺 +8 - +8+0.02 - +0.02
arduino:samd:nano_33_iot🔺 +136 - +144+0.05 - +0.05🔺 +8 - +8+0.02 - +0.02
Click for full report table
Boardexamples/Central/LedControl
flash
%examples/Central/LedControl
RAM for global variables
%examples/Central/PeripheralExplorer
flash
%examples/Central/PeripheralExplorer
RAM for global variables
%examples/Central/Scan
flash
%examples/Central/Scan
RAM for global variables
%examples/Central/ScanCallback
flash
%examples/Central/ScanCallback
RAM for global variables
%examples/Central/SensorTagButton
flash
%examples/Central/SensorTagButton
RAM for global variables
%examples/Peripheral/Advertising/EnhancedAdvertising
flash
%examples/Peripheral/Advertising/EnhancedAdvertising
RAM for global variables
%examples/Peripheral/Advertising/RawDataAdvertising
flash
%examples/Peripheral/Advertising/RawDataAdvertising
RAM for global variables
%examples/Peripheral/BatteryMonitor
flash
%examples/Peripheral/BatteryMonitor
RAM for global variables
%examples/Peripheral/ButtonLED
flash
%examples/Peripheral/ButtonLED
RAM for global variables
%examples/Peripheral/CallbackLED
flash
%examples/Peripheral/CallbackLED
RAM for global variables
%examples/Peripheral/EncryptedBatteryMonitor
flash
%examples/Peripheral/EncryptedBatteryMonitor
RAM for global variables
%examples/Peripheral/LED
flash
%examples/Peripheral/LED
RAM for global variables
%
arduino:mbed_nano:nano33ble1360.0180.01360.0180.01360.0180.01360.0180.01360.0180.01360.0180.01360.0180.01360.0180.01360.0180.01360.0180.01360.0180.01360.0180.0
arduino:mbed_nano:nanorp2040connect1400.080.01400.080.01400.080.01400.080.01400.080.01400.080.01400.080.01400.080.01400.080.01400.080.01400.080.01400.080.0
arduino:megaavr:uno2018:mode=on1800.3740.071800.3740.071800.3740.071800.3740.071800.3740.071800.3740.071800.3740.071800.3740.071800.3740.071800.3740.071800.3740.071800.3740.07
arduino:renesas_uno:unor4wifi1360.0580.021360.0580.021360.0580.021360.0580.021360.0580.021360.0580.021360.0580.021360.0580.021360.0580.021200.0580.021360.0580.021360.0580.02
arduino:samd:mkrwifi10101360.0580.021440.0580.021440.0580.021440.0580.021360.0580.021440.0580.021360.0580.021360.0580.021360.0580.021360.0580.021440.0580.021440.0580.02
arduino:samd:nano_33_iot1360.0580.021440.0580.021440.0580.021440.0580.021360.0580.021440.0580.021360.0580.021360.0580.021360.0580.021360.0580.021440.0580.021440.0580.02
Click for full report CSV
Board,examples/Central/LedControl<br>flash,%,examples/Central/LedControl<br>RAM for global variables,%,examples/Central/PeripheralExplorer<br>flash,%,examples/Central/PeripheralExplorer<br>RAM for global variables,%,examples/Central/Scan<br>flash,%,examples/Central/Scan<br>RAM for global variables,%,examples/Central/ScanCallback<br>flash,%,examples/Central/ScanCallback<br>RAM for global variables,%,examples/Central/SensorTagButton<br>flash,%,examples/Central/SensorTagButton<br>RAM for global variables,%,examples/Peripheral/Advertising/EnhancedAdvertising<br>flash,%,examples/Peripheral/Advertising/EnhancedAdvertising<br>RAM for global variables,%,examples/Peripheral/Advertising/RawDataAdvertising<br>flash,%,examples/Peripheral/Advertising/RawDataAdvertising<br>RAM for global variables,%,examples/Peripheral/BatteryMonitor<br>flash,%,examples/Peripheral/BatteryMonitor<br>RAM for global variables,%,examples/Peripheral/ButtonLED<br>flash,%,examples/Peripheral/ButtonLED<br>RAM for global variables,%,examples/Peripheral/CallbackLED<br>flash,%,examples/Peripheral/CallbackLED<br>RAM for global variables,%,examples/Peripheral/EncryptedBatteryMonitor<br>flash,%,examples/Peripheral/EncryptedBatteryMonitor<br>RAM for global variables,%,examples/Peripheral/LED<br>flash,%,examples/Peripheral/LED<br>RAM for global variables,%arduino:mbed_nano:nano33ble,136,0.01,8,0.0,136,0.01,8,0.0,136,0.01,8,0.0,136,0.01,8,0.0,136,0.01,8,0.0,136,0.01,8,0.0,136,0.01,8,0.0,136,0.01,8,0.0,136,0.01,8,0.0,136,0.01,8,0.0,136,0.01,8,0.0,136,0.01,8,0.0arduino:mbed_nano:nanorp2040connect,140,0.0,8,0.0,140,0.0,8,0.0,140,0.0,8,0.0,140,0.0,8,0.0,140,0.0,8,0.0,140,0.0,8,0.0,140,0.0,8,0.0,140,0.0,8,0.0,140,0.0,8,0.0,140,0.0,8,0.0,140,0.0,8,0.0,140,0.0,8,0.0arduino:megaavr:uno2018:mode=on,180,0.37,4,0.07,180,0.37,4,0.07,180,0.37,4,0.07,180,0.37,4,0.07,180,0.37,4,0.07,180,0.37,4,0.07,180,0.37,4,0.07,180,0.37,4,0.07,180,0.37,4,0.07,180,0.37,4,0.07,180,0.37,4,0.07,180,0.37,4,0.07arduino:renesas_uno:unor4wifi,136,0.05,8,0.02,136,0.05,8,0.02,136,0.05,8,0.02,136,0.05,8,0.02,136,0.05,8,0.02,136,0.05,8,0.02,136,0.05,8,0.02,136,0.05,8,0.02,136,0.05,8,0.02,120,0.05,8,0.02,136,0.05,8,0.02,136,0.05,8,0.02arduino:samd:mkrwifi1010,136,0.05,8,0.02,144,0.05,8,0.02,144,0.05,8,0.02,144,0.05,8,0.02,136,0.05,8,0.02,144,0.05,8,0.02,136,0.05,8,0.02,136,0.05,8,0.02,136,0.05,8,0.02,136,0.05,8,0.02,144,0.05,8,0.02,144,0.05,8,0.02arduino:samd:nano_33_iot,136,0.05,8,0.02,144,0.05,8,0.02,144,0.05,8,0.02,144,0.05,8,0.02,136,0.05,8,0.02,144,0.05,8,0.02,136,0.05,8,0.02,136,0.05,8,0.02,136,0.05,8,0.02,136,0.05,8,0.02,144,0.05,8,0.02,144,0.05,8,0.02

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

Reviewers

No reviews

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.

3 participants

@matpowel@CLAassistant@per1234

[8]ページ先頭

©2009-2025 Movatter.jp