Skip to content

Commit efed554

Browse files
committed
typescript: sendHIDReport, number[] and optional callback
1 parent 8dcc4c5 commit efed554

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libs/bluetooth/jswrap_bluetooth.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2703,7 +2703,8 @@ void jswrap_nfc_send(JsVar *payload) {
27032703
"params" : [
27042704
["data","JsVar","Input report data as an array"],
27052705
["callback","JsVar","A callback function to be called when the data is sent"]
2706-
]
2706+
],
2707+
"typescript" : "sendHIDReport(data: number[], callback?: () => void): void"
27072708
}
27082709
Send a USB HID report. HID must first be enabled with `NRF.setServices({}, {hid:
27092710
hid_report})`

0 commit comments

Comments
 (0)