mirror of
https://github.com/meshcore-dev/meshcore.js.git
synced 2026-04-20 22:13:49 +00:00
quiet logs
This commit is contained in:
parent
fffe23ad89
commit
1d88787c92
1 changed files with 8 additions and 8 deletions
16
index.html
16
index.html
|
|
@ -200,15 +200,15 @@
|
|||
this.connection = await SerialConnection.open();
|
||||
this.connection.on("connected", () => this.onConnected());
|
||||
this.connection.on("disconnected", () => this.onDisconnected());
|
||||
this.connection.on("tx", (data) => console.log("tx", data));
|
||||
this.connection.on("rx", (data) => console.log("rx", data));
|
||||
// this.connection.on("tx", (data) => console.log("tx", data));
|
||||
// this.connection.on("rx", (data) => console.log("rx", data));
|
||||
},
|
||||
async askForBleDevice() {
|
||||
this.connection = await BleConnection.open();
|
||||
this.connection.on("connected", () => this.onConnected());
|
||||
this.connection.on("disconnected", () => this.onDisconnected());
|
||||
this.connection.on("tx", (data) => console.log("tx", data));
|
||||
this.connection.on("rx", (data) => console.log("rx", data));
|
||||
// this.connection.on("tx", (data) => console.log("tx", data));
|
||||
// this.connection.on("rx", (data) => console.log("rx", data));
|
||||
},
|
||||
async disconnect() {
|
||||
if(this.connection){
|
||||
|
|
@ -250,10 +250,10 @@
|
|||
console.log("ExportContact", event);
|
||||
});
|
||||
|
||||
this.connection.on(Constants.PushCodes.LogRxData, async (event) => {
|
||||
console.log("LogRxData", event)
|
||||
console.log(this.bytesToHex(event.raw));
|
||||
});
|
||||
// this.connection.on(Constants.PushCodes.LogRxData, async (event) => {
|
||||
// console.log("LogRxData", event)
|
||||
// console.log(this.bytesToHex(event.raw));
|
||||
// });
|
||||
|
||||
},
|
||||
onDisconnected() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue