setup events

This commit is contained in:
liamcottle 2025-02-11 22:07:10 +13:00
parent 6f2d4ce1f7
commit feb149ad35
5 changed files with 65 additions and 15 deletions

View file

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