diff --git a/index.html b/index.html index 780a415..f1d11ac 100644 --- a/index.html +++ b/index.html @@ -26,6 +26,9 @@ + @@ -83,6 +86,12 @@ this.device = await Device.fromSerialPort(serialPort); }, + async disconnect() { + if(this.device){ + await this.device.close(); + this.device = null; + } + }, async sendCommandAppStart() { await this.device.sendCommandAppStart(); },