LYWSD02-LYWSD03MMC-MQTT
LYWSD02-LYWSD03MMC-MQTT copied to clipboard
Device doesn't have needed handle or connection is failed, skipping
Hi, I would very much like to use your script but it gives me the error in the subject. Apparantly mine has different "handless" (whatever that may be) then in the script.
Gatttool gives me the following output with Primary: primary attr handle: 0x0001, end grp handle: 0x0007 uuid: 00001800-0000-1000-8000-00805f9b34fb attr handle: 0x0008, end grp handle: 0x000b uuid: 00001801-0000-1000-8000-00805f9b34fb attr handle: 0x000c, end grp handle: 0x0018 uuid: 0000180a-0000-1000-8000-00805f9b34fb attr handle: 0x0019, end grp handle: 0x001c uuid: 0000180f-0000-1000-8000-00805f9b34fb attr handle: 0x001d, end grp handle: 0x0026 uuid: 0000181a-0000-1000-8000-00805f9b34fb attr handle: 0x0027, end grp handle: 0x002a uuid: 00010203-0405-0607-0809-0a0b0c0d1912 attr handle: 0x002b, end grp handle: 0x002e uuid: 00001f10-0000-1000-8000-00805f9b34fb attr handle: 0x002f, end grp handle: 0x0030 uuid: 0000fe95-0000-1000-8000-00805f9b34fb
Does this help as to change something in the script to make it work?
I also have a similar question, maybe you have time to answer. I've flashed the ATC firmware so that gatttool -b [mac] --characteristics
gives me this:
handle = 0x0002, char properties = 0x12, char value handle = 0x0003, uuid = 00002a00-0000-1000-8000-00805f9b34fb
handle = 0x0004, char properties = 0x02, char value handle = 0x0005, uuid = 00002a01-0000-1000-8000-00805f9b34fb
handle = 0x0006, char properties = 0x02, char value handle = 0x0007, uuid = 00002a04-0000-1000-8000-00805f9b34fb
handle = 0x0009, char properties = 0x20, char value handle = 0x000a, uuid = 00002a05-0000-1000-8000-00805f9b34fb
handle = 0x000d, char properties = 0x12, char value handle = 0x000e, uuid = 00002a19-0000-1000-8000-00805f9b34fb
handle = 0x0011, char properties = 0x12, char value handle = 0x0012, uuid = 00002a1f-0000-1000-8000-00805f9b34fb
handle = 0x0014, char properties = 0x12, char value handle = 0x0015, uuid = 00002a6f-0000-1000-8000-00805f9b34fb
handle = 0x0018, char properties = 0x06, char value handle = 0x0019, uuid = 00010203-0405-0607-0809-0a0b0c0d2b12
handle = 0x001c, char properties = 0x14, char value handle = 0x001d, uuid = 00001f1f-0000-1000-8000-00805f9b34fb
I'm afraid I can't decypher what sed '/ebe0ccc1/!d;s/^.*char value handle = //;s/, .*//'
in your lyw.sh means, it does not seem to work with the output of gatttool mentioned above.
Can you help me with that?