[ble] Add support to clear all current bondings

This commit is contained in:
Dimitris Zervas
2020-09-15 01:52:33 +03:00
committed by Kyle Brown
parent e5700eeb5f
commit 2cf64d8ce7
4 changed files with 12 additions and 1 deletions

View File

@@ -63,3 +63,8 @@ class BLEHID(AbstractHID):
return self.devices[reporting_device_const].send_report(
evt[1 : report_size + 1]
)
def clear_bonds(self):
import _bleio
_bleio.adapter.erase_bonding()