コード例 #1
0
 def enqueue_hci_command(self, command, expect_complete):
     cmd_bytes = bytes(command.Serialize())
     cmd = hci_facade.CommandMsg(command=cmd_bytes)
     if (expect_complete):
         self.cert.hci.EnqueueCommandWithComplete(cmd)
     else:
         self.cert.hci.EnqueueCommandWithStatus(cmd)
コード例 #2
0
 def __send_hci_command_with_status(self, command):
     cmd_bytes = bytes(command.Serialize())
     cmd = hci_facade.CommandMsg(command=cmd_bytes)
     self.hci.EnqueueCommandWithStatus(cmd)
コード例 #3
0
ファイル: py_hci.py プロジェクト: lhn0610/Android_Bluetooth
 def send_command_with_complete(self, command):
     cmd_bytes = bytes(command.Serialize())
     cmd = hci_facade.CommandMsg(command=cmd_bytes)
     self.device.hci.EnqueueCommandWithComplete(cmd)