write_char
Write hex bytes to a Bluetooth LE characteristic and return the remaining write budget; requires the device to be armed by a human in a terminal and can wait for acknowledgment.
Instructions
write hex bytes to a characteristic; returns the writes left.
refused unless the human armed this device by running harald arm <address>
in their own terminal. each write spends one from that budget, and
firmware-update services stay blocked. by default it writes without response
when the characteristic allows that, and with response otherwise.
response=true waits for the device to acknowledge the write; false does not.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | ||
| data_hex | Yes | ||
| response | No | ||
| char_uuid | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |