We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c65fcf commit 61846dfCopy full SHA for 61846df
1 file changed
js/repl.js
@@ -524,12 +524,12 @@ class ReplJS{
524
//This is writing to cause the XRP to reboot, so we don't expect a response from the BLE. So, we will not ask for one.
525
async writeSTOPtoBleDevice(str){
526
try{
527
- this.WRITEBLE.writeValue(this.str2ab(str)); //don't wait since the Windows timeout is long
+ await this.WRITEBLE.writeValueWithResponse(this.str2ab(str)); //don't wait since the Windows timeout is long
528
} catch(error){
529
console.error('ble stop write failed:', error);
530
//do nothing we expected an error
531
}
532
-
+ this.BLE_DEVICE.gatt.disconnect();
533
534
535
async softReset(){
0 commit comments