diff --git a/ble.py b/ble.py index b344dbc..8a39bea 100644 --- a/ble.py +++ b/ble.py @@ -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"), diff --git a/gui.py b/gui.py index 7cf9c50..266e094 100755 --- a/gui.py +++ b/gui.py @@ -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)