Sun 2019.03.31
'the log returns "A", but then the bind doesn't seem to envoke the _sent function'
From #24 Line 31 hidKBD.type("ABC"); of your version is sending a string or array of chars.
hidKBD.type("ABC");
From #24 Line 10 this._send(this.string.charAt(0)) is internally sending an individual character, element zero of the string.
this._send(this.string.charAt(0))
From #9 Line 14 @allObjects kb.tap(kb.KEY[c],0,this._sent.bind(this)); code line is using an array. Was the new attempt a mismatch done intentionally?
kb.tap(kb.KEY[c],0,this._sent.bind(this));
Have you discovered W3Schools which always helped me with their 'TryIt' editor
https://www.w3schools.com/jsref/jsref_charat.asp https://www.w3schools.com/js/js_function_call.asp https://www.w3schools.com/js/js_function_parameters.asp
' have it returning a something representative of the BLE HID output to a browser'
@tronic98776 do these control Puck-Web Page tutorials provide some insight?
Beneath heading 'A Website'
https://www.espruino.com/Quick+Start+BLE#puckjs https://www.espruino.com/Web%20Bluetooth https://www.puck-js.com/go
@Robin started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Sun 2019.03.31
From #24 Line 31
hidKBD.type("ABC");
of your version is sending a string or array of chars.From #24 Line 10
this._send(this.string.charAt(0))
is internally sending an individual character, element zero of the string.From #9 Line 14 @allObjects
kb.tap(kb.KEY[c],0,this._sent.bind(this));
code line is using an array. Was the new attempt a mismatch done intentionally?Have you discovered W3Schools which always helped me with their 'TryIt' editor
@tronic98776 do these control Puck-Web Page tutorials provide some insight?
Beneath heading 'A Website'