mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2024-05-20 16:01:20 +02:00
feat(NimBLEDevice): return code from deleteAllBonds
This commit is contained in:
parent
5c007cb845
commit
e099552a31
|
@ -569,8 +569,8 @@ int NimBLEDevice::getNumBonds() {
|
|||
* @brief Deletes all bonding information.
|
||||
*/
|
||||
/*STATIC*/
|
||||
void NimBLEDevice::deleteAllBonds() {
|
||||
ble_store_clear();
|
||||
int NimBLEDevice::deleteAllBonds() {
|
||||
return ble_store_clear();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -172,7 +172,7 @@ public:
|
|||
static bool deleteBond(const NimBLEAddress &address);
|
||||
static int getNumBonds();
|
||||
static bool isBonded(const NimBLEAddress &address);
|
||||
static void deleteAllBonds();
|
||||
static int deleteAllBonds();
|
||||
static NimBLEAddress getBondedAddress(int index);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue