Skip to content

Conversation

@h2zero
Copy link
Owner

@h2zero h2zero commented Nov 18, 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.

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

* 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.
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 merged commit b719a39 into master Nov 18, 2024
31 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.

2 participants