https://toitlang.org/ logo
I'm having some trouble getting a characteristic f...
# general
m
I'm having some trouble getting a characteristic from a smart device. Heart Measurement (0x2A37) isn't read, only notified (you can see the corresponding exception in JAG monitor). Therefore, reading is replaced with subscribing. I tested this in Flutter using the flutter_reactive_ble package, and it works. I noticed that ble of Toit also supports notifications and subscribing, but it's unclear how to use this mechanism, and the examples don't explain it. If it's easy, could you please clarify how it works? Thanks in advance. JAG monitor
Copy code
[jaguar] INFO: program 94e7226f-cba3-e548-86bb-a0233c7c1731 started
address->#[0x00, 0x07, 0x35, 0x00, 0xcf, 0x83, 0x72]
device connected...
Exception: Characteristic does not support reads
[jaguar] INFO: program 94e7226f-cba3-e548-86bb-a0233c7c1731 stopped
https://cdn.discordapp.com/attachments/918498540232253483/1437368694383710249/find_device.toit?ex=6912fd69&is=6911abe9&hm=a185c0d9bde3b335ad0cdc3ba78157d26aef5730690ec9a6923c37c40a1b0e3f&