Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
andete committed Mar 2, 2014
1 parent 090df58 commit 64b6abc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ble.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@
chr_exter = ([0x29, 0x07], "External Report Reference"),
chr_repor = ([0x29, 0x08], "Report Reference"),

devi_name = ([0x2A, 0x00], "Device Name"),
appearanc = ([0x2A, 0x01], "Appearance"),
per_pri_f = ([0x2A, 0x02], "Peripheral Privacy Flag"),
reconnect = ([0x2A, 0x03], "Reconnection Address"),
per_pref_ = ([0x2A, 0x04], "Peripheral Preferred Connection Parameters"),

ti_st_1 = ([0xF0, 0x00, 0xAA, 0x00, 0x04, 0x51, 0x40, 0x00, 0xB0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00], "TI IR Temperature Sensor"),
ti_st_2 = ([0xF0, 0x00, 0xAA, 0x10, 0x04, 0x51, 0x40, 0x00, 0xB0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00], "TI Accelerometer"),
ti_st_3 = ([0xF0, 0x00, 0xAA, 0x20, 0x04, 0x51, 0x40, 0x00, 0xB0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00], "TI Humidity Sensor"),
Expand Down
2 changes: 1 addition & 1 deletion gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def __init__(self, ble, handle, mac):
self.view.setRootIsDecorated(False)
self.model = QtGui.QStandardItemModel()
self.model.setColumnCount(5)
self.model.setHorizontalHeaderLabels(['type', 'service/type','name','handle-start', 'handle-end'])
self.model.setHorizontalHeaderLabels(['type', 'service/type','name','handle', 'end/value'])
self.root = self.model.invisibleRootItem()
self.view.setModel(self.model)

Expand Down

0 comments on commit 64b6abc

Please sign in to comment.