Skip to content

Conversation

@finger563
Copy link
Contributor

@finger563 finger563 commented Feb 6, 2025

Description

  • Add some new methods to BleGattServer
  • Remove logging from many methods which was unnecessary, and mark those methods const
  • Update hid_service example to print Manufacturer name, model number, and PnpId for remote device
  • Update hid_service example to print connected info more clearly and have cleaner code
  • Update hid_service example to wait until after auth to read values from the remote
  • Update DeviceInfoService to have static methods for parsing received PnpId
  • Update DeviceInfoService and BatteryService so UUIDs are public
  • Update esp-nimble-cpp submodule to latest, brining in improvements as well as new feature to register store callback for managing bonding info when it fills up.

Motivation and Context

  • Allows you to read more information from the remotely connected device, if it is supported.
  • Allows you to better control which bonds are deleted / how bonds are managed when the bond storage space fills up

Related esp-nimble-cpp PRs included in this change:

How has this been tested?

  • Build and run hid_service/exmaple on QtPy ESP32s3 and test with iPhone and Android
  • Build and run ble_gatt_server/example on QtPy ESP32s3 and test with Android.

Screenshots (if appropriate, e.g. schematic, board, console logs, lab pictures):

CleanShot 2025-02-06 at 10 34 27
CleanShot 2025-02-06 at 10 12 12

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update
  • Hardware (schematic, board, system design) change
  • Software change

Checklist:

  • My change requires a change to the documentation.
  • I have added / updated the documentation related to this change via either README or WIKI

Software

  • I have added tests to cover my changes.
  • I have updated the .github/workflows/build.yml file to add my new test to the automated cloud build github action.
  • All new and existing tests passed.
  • My code follows the code style of this project.

* Add some new methods to `BleGattServer`
* Remove logging from many methods which was unnecessary, and mark those methods `const`
* Update `hid_service` example to print Manufacturer name, model number, and PnpId for remote device
* Update `hid_service` example to print connected info more clearly and have cleaner code
* Update `hid_service` example to wait until after auth to read values from the remote
* Update `DeviceInfoService` to have static methods for parsing received PnpId
* Update `DeviceInfoService` and `BatteryService` so UUIDs are public
* Update `esp-nimble-cpp` submodule to latest, brining in improvements as well as new feature to register store callback for managing bonding info when it fills up.

Allows you to read more information from the remotely connected device, if it is supported.
Allows you to better control which bonds are deleted / how bonds are managed when the bond storage space fills up

* Build and run `hid_service/exmaple` on QtPy ESP32s3 and test with iPhone and Android
* Build and run `ble_gatt_server/example` on QtPy ESP32s3 and test with Android.
@github-actions
Copy link

github-actions bot commented Feb 6, 2025

✅Static analysis result - no issues found! ✅

@finger563 finger563 merged commit c324c45 into main Feb 6, 2025
70 checks passed
@finger563 finger563 deleted the feat/ble-update branch February 6, 2025 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants