z3ugma
04/22/2024, 5:47 PMInformatic0re
04/22/2024, 9:06 PMcommand-charac = service.add-write-only-characteristic COMMAND-CHARAC-UUID
and then you can run one or multiple tasks like so:
command-receiver-task:
while true:
payload := command-charac.read
...
which will handle the reads whenever something was written to that characteristicInformatic0re
04/22/2024, 9:07 PMfloitsch
04/22/2024, 9:40 PM