mirror of
https://github.com/thegecko/web-bluetooth-dfu.git
synced 2025-12-14 21:18:13 +08:00
Added node example
This commit is contained in:
3
dist/secure-dfu.js
vendored
3
dist/secure-dfu.js
vendored
@@ -190,7 +190,7 @@
|
||||
.then(() => {
|
||||
this.log("enabled buttonless notifications");
|
||||
buttonChar.addEventListener("characteristicvaluechanged", this.handleNotification.bind(this));
|
||||
return this.sendOperation(buttonChar, OPERATIONS.BUTTON_COMMAND);
|
||||
this.sendOperation(buttonChar, OPERATIONS.BUTTON_COMMAND);
|
||||
})
|
||||
.then(() => {
|
||||
this.log("sent dfu mode");
|
||||
@@ -436,5 +436,6 @@
|
||||
secureDfu.prototype.removeEventListener = removeEventListener;
|
||||
secureDfu.prototype.dispatchEvent = dispatchEvent;
|
||||
|
||||
secureDfu.SERVICE_UUID = SERVICE_UUID;
|
||||
return secureDfu;
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user