Added node example

This commit is contained in:
Rob Moran
2017-05-14 23:34:57 +01:00
parent 436607eedf
commit 7c6734c5f8
6 changed files with 171 additions and 80 deletions

3
dist/secure-dfu.js vendored
View File

@@ -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;
}));