This commit is contained in:
Robert Martin committed 2020-04-12 05:08:11 +09:00
1 parent c5cd075ab7
commit 2d56e38b2b
2 files changed
+1 -1

No files matched your search

-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()