mirror of
https://github.com/meshcore-dev/meshcore.js.git
synced 2026-04-20 22:13:49 +00:00
tell device what protocol version we support when connected
This commit is contained in:
parent
e73632456d
commit
0210b5a438
6 changed files with 21 additions and 9 deletions
|
|
@ -22,8 +22,8 @@ class NodeJSSerialConnection extends SerialConnection {
|
|||
baudRate: 115200,
|
||||
});
|
||||
|
||||
this.serialPort.on("open", () => {
|
||||
this.onConnected();
|
||||
this.serialPort.on("open", async () => {
|
||||
await this.onConnected();
|
||||
});
|
||||
|
||||
this.serialPort.on("close", () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue