(self, adapter_index=0)
| 3141 | desc = "read/write H4 over a Bluetooth user channel" |
| 3142 | |
| 3143 | def __init__(self, adapter_index=0): |
| 3144 | sa = sockaddr_hci() |
| 3145 | sa.sin_family = socket.AF_BLUETOOTH |
| 3146 | sa.hci_dev = adapter_index |
| 3147 | sa.hci_channel = HCI_CHANNEL_USER |
| 3148 | super().__init__( |
| 3149 | socket_domain=socket.AF_BLUETOOTH, |
| 3150 | socket_type=socket.SOCK_RAW, |
| 3151 | socket_protocol=socket.BTPROTO_HCI, |
| 3152 | sock_address=sa) |
| 3153 | |
| 3154 | def send_command(self, cmd): |
| 3155 | opcode = cmd[HCI_Command_Hdr].opcode |
nothing calls this directly
no test coverage detected