Skip to content

Commit

Permalink
added NotImplementedError for FreeBSD backend
Browse files Browse the repository at this point in the history
  • Loading branch information
citruz committed Oct 26, 2020
1 parent b9770b4 commit e3a41ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions beacontools/backend/freebsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,7 @@ def send_cmd(sock, group_field, command_field, data):
"""Send hci command to device."""
opcode = (((group_field & 0x3f) << 10) | (command_field & 0x3ff))
sock.send(struct.pack('<BHB', 1, opcode, len(data)) + data)

def send_req(_socket, _group_field, _command_field, _event, _rlen, _params, _timeout):
"""Support for HCI 5 has not been implemented yet for FreeBSD, pull requests are wellcome"""
raise NotImplementedError("send_req has not been implemented yet for FreeBSD")

0 comments on commit e3a41ca

Please sign in to comment.