Skip to content

Commit

Permalink
Fixed for new Biscuit firmware, the handle values changed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheong2K committed Apr 16, 2014
1 parent 36fd11c commit ec1f611
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/BLEMini/Biscuit_Central_HCI.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def GAPCentralRole_StartDiscovery( mode, activeScan, whiteList ):
def ble_enable_notification():
writeReq = attWriteReq_t

writeReq.handle = '\x16\x00'
writeReq.handle = '\x13\x00'
writeReq.len = '\x02'
writeReq.value = '\x01\x00'

Expand All @@ -286,7 +286,7 @@ def ble_enable_notification():
def ble_write_bytes(buf):
writeReq = attWriteReq_t

writeReq.handle = '\x19\x00'
writeReq.handle = '\x16\x00'
writeReq.len = struct.pack('b', len(buf))
writeReq.value = buf

Expand Down

0 comments on commit ec1f611

Please sign in to comment.