Repository navigation
feat: update NimBLE-Arduino dependency - #18
Merged
Merged
Conversation
There was a problem hiding this comment.
🔵 Needs a closer look
Compatibility with NimBLE 2.x remains unverified because the reported keyboard submodule update was unavailable for inspection.
No open issues 🎉
What changed in this PR
Updates the BLE dependency and improves RemoteShutter initialization and connection timing.
Changes:
- Upgrades NimBLE-Arduino from
~1.4.2to^2.5.1. - Initializes timestamp and connection-state members.
- Resets timing while disconnected and on connection transitions.
| File | Description |
|---|---|
| src/RemoteShutter.cpp | Updates timestamp handling around connection state. |
| platformio.ini | Upgrades NimBLE-Arduino. |
| include/RemoteShutter.hpp | Initializes members and includes Arduino definitions. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request updates the BLE keyboard dependency, improves initialization of member variables in the
RemoteShutterclass, and refines connection state handling to ensure accurate timing and state tracking. The main changes are grouped below:Dependency Updates:
NimBLE-Arduinolibrary from version~1.4.2to^2.5.1inplatformio.inito ensure compatibility with newer features and bug fixes.ESP32-BLE-Keyboardsubmodule to a newer commit, likely pulling in upstream improvements and fixes.Code Quality and Initialization:
last_sent_msto0andconn_statetofalsein theRemoteShutterclass to prevent uninitialized variable issues. Also added the missing#include <Arduino.h>for clarity and compatibility. (include/RemoteShutter.hpp) [1] [2]Connection State and Timing Logic:
lastSentDurationto resetlast_sent_mswhen not connected, ensuring duration calculations are accurate and preventing stale values. (src/RemoteShutter.cpp)wasConnectedandwasDisconnectedto updatelast_sent_mswith the currentmillis()value upon connection and disconnection events, improving the accuracy of connection state timing. (src/RemoteShutter.cpp)