This commit is contained in:
Robert Martin
2020-04-12 05:08:11 +09:00
parent c5cd075ab7
commit 2d56e38b2b
2 changed files with 1 additions and 1 deletions
-1
View File
@@ -53,7 +53,6 @@ class HidDevice:
"""
self.properties.Set(self.adapter.dbus_interface, 'Pairable', boolean)
async def set_class(self, cls='0x002508'):
"""
Sets Bluetooth device class. Requires hciconfig system command.
+1
View File
@@ -76,6 +76,7 @@ async def create_hid_server(protocol_factory, ctl_psm=17, itr_psm=19, device_id=
hid.powered(True)
hid.pairable(True)
# setting bluetooth adapter name and class to the device we wish to emulate
await hid.set_name(protocol.controller.device_name())
await hid.set_class()