mirror of
https://github.com/meshcore-dev/meshcore.js.git
synced 2026-04-20 22:13:49 +00:00
refactor ble connection to web ble connection
This commit is contained in:
parent
6a3d96b6c6
commit
06f8f9d4ea
4 changed files with 8 additions and 8 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import Constants from "../constants.js";
|
||||
import Connection from "./connection.js";
|
||||
|
||||
class BleConnection extends Connection {
|
||||
class WebBleConnection extends Connection {
|
||||
|
||||
constructor(bleDevice) {
|
||||
super();
|
||||
|
|
@ -36,7 +36,7 @@ class BleConnection extends Connection {
|
|||
return null;
|
||||
}
|
||||
|
||||
return new BleConnection(device);
|
||||
return new WebBleConnection(device);
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -103,4 +103,4 @@ class BleConnection extends Connection {
|
|||
|
||||
}
|
||||
|
||||
export default BleConnection;
|
||||
export default WebBleConnection;
|
||||
Loading…
Add table
Add a link
Reference in a new issue