Skip to content

Conversation

@h2zero
Copy link
Owner

@h2zero h2zero commented Nov 15, 2024

  • Removes the connection established flag as it should not be necessary.

  • Deleting the client instance from the onDisconnect callback is now supported.

  • NimBLEDevice::deleteClient no longer blocks tasks

  • Adds a new Config struct to NimBLEClient to efficiently set single bit config settings.

  • Adds NimBLEClient::setSelfDelete that takes the bool parameters deleteOnDisconnect and deleteOnConnectFail
    This will configure the client to delete itself when disconnected or the connection attempt fails.

  • Adds NimBLEClient::setConfig and NimBLEClient::getConfig which takes or returns a NimBLEClient::Config object respectively.

  • Reword BLE_HS_EAPP error string to be more accurate.

@h2zero h2zero force-pushed the client-connection-improvements branch 2 times, most recently from 5b23b1c to 7a98fa8 Compare November 16, 2024 00:10
@h2zero h2zero force-pushed the client-connection-improvements branch 2 times, most recently from fe6bc93 to bc76384 Compare November 16, 2024 16:21
@h2zero h2zero force-pushed the client-connection-improvements branch from bc76384 to 86d5ebe Compare November 16, 2024 22:53
@h2zero h2zero force-pushed the client-connection-improvements branch 4 times, most recently from 32a8ef8 to 3733eeb Compare November 18, 2024 00:03
* Removes the connection established flag as it should not be necessary.
* Deleting the client instance from the `onDisconnect` callback is now supported.
* `NimBLEDevice::deleteClient` no longer blocks tasks
* Adds a new `Config` struct to `NimBLEClient` to efficiently set single bit config settings.
* Adds `NimBLEClient::setSelfDelete` that takes the bool parameters `deleteOnDisconnect` and `deleteOnConnectFail`
  This will configure the client to delete itself when disconnected or the connection attempt fails.
* Adds `NimBLEClient::setConfig` and `NimBLEClient::getConfig` which takes or returns a `NimBLEClient::Config` object respectively.

* Reword `BLE_HS_EAPP` error string to be more accurate.
@h2zero h2zero force-pushed the client-connection-improvements branch from 3733eeb to 97d450e Compare November 18, 2024 15:23
Replaces `NimBLEDevice::setConnectionInProgress` and `NimBLEDevice::isConnectionInProgress()` with lower level checks to avoid potential incorrect state reporting.
`NimBLEClient::connect` will instead call `NimBLEScan::stop` if it stopped the scan to release any resources waiting, the call the callback if set.
@h2zero h2zero force-pushed the client-connection-improvements branch from 97d450e to 78d2303 Compare November 18, 2024 15:27
@h2zero h2zero merged commit 5f2730d into master Nov 18, 2024
94 checks passed
@h2zero h2zero deleted the client-connection-improvements branch November 18, 2024 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants