mirror of
https://github.com/meshcore-dev/meshcore.js.git
synced 2026-04-20 22:13:49 +00:00
setup events
This commit is contained in:
parent
6f2d4ce1f7
commit
feb149ad35
5 changed files with 65 additions and 15 deletions
|
|
@ -88,8 +88,9 @@ class BleConnection extends Connection {
|
|||
}
|
||||
}
|
||||
|
||||
async sendToRadioFrame(data) {
|
||||
await this.write(data);
|
||||
async sendToRadioFrame(frame) {
|
||||
this.emit("tx", frame);
|
||||
await this.write(frame);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue