https://toitlang.org/ logo
Use this tutorial as a starting point: https://doc...
# general
f
Use this tutorial as a starting point: https://docs.toit.io/tutorials/ble/client When you are connected, get the characteristics you are interested in. (the UUIDs of
writeCharUuid
and
readCharUuid
). You can then
write-characteristic.write data
(where
data
is your 16-byte? message). For reading:
Copy code
task::
  read-characteristic.subscribe
  while true:
    incoming-data := read-characteristic.wait-for-notification
    // Use the data.