Hi, sorry this isn't really an issue, more a query. I am hacking read_ble() to query my Elgato Eve door and window sensor. i have a list of 150 handles which could return the state of the sensor. I am parsing the list using read_ble() and all goes well until the handle 0x3021 returns a NoneType. I assume you dealt with this when writing the script so wondering how to handle it? I am a bit mystified why this isn't handled by the final line of read_ble()
LOGGER.debug("Exit read_ble, no data (%s)", current_thread())
Cheers
`Running
0x1000
0x2000
0x2001
*
0x2002
Eve Door
0x2003
*
0x2004
0x3000
Rv»&U
0x3010
0Ñ PªÓHY§]éæ
0x3011
f
0x3020
!0Rv»&O
0x3021
Characteristic value/descriptor read failed: Attribute can't be read
Characteristic value/descriptor read failed: Attribute can't be read
connect error: Transport endpoint is not connected (107)
Characteristic value/descriptor read failed: Attribute can't be read
Traceback (most recent call last):
File "test.py", line 94, in
print(''.join(chr(n) for n in name))
TypeError: 'NoneType' object is not iterable`
Hi, sorry this isn't really an issue, more a query. I am hacking read_ble() to query my Elgato Eve door and window sensor. i have a list of 150 handles which could return the state of the sensor. I am parsing the list using read_ble() and all goes well until the handle 0x3021 returns a NoneType. I assume you dealt with this when writing the script so wondering how to handle it? I am a bit mystified why this isn't handled by the final line of read_ble()
LOGGER.debug("Exit read_ble, no data (%s)", current_thread())
Cheers`Running
0x1000
0x2000
0x2001 *
0x2002 Eve Door
0x2003 *
0x2004
0x3000 Rv»&U
0x3010 0Ñ PªÓHY§]éæ
0x3011 f
0x3020
!0Rv»&O
0x3021 Characteristic value/descriptor read failed: Attribute can't be read Characteristic value/descriptor read failed: Attribute can't be read connect error: Transport endpoint is not connected (107) Characteristic value/descriptor read failed: Attribute can't be read Traceback (most recent call last): File "test.py", line 94, in
print(''.join(chr(n) for n in name))
TypeError: 'NoneType' object is not iterable`