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;
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
import Connection from "./connection/connection.js";
|
||||
import BleConnection from "./connection/ble_connection.js";
|
||||
import WebBleConnection from "./connection/web_ble_connection.js";
|
||||
import SerialConnection from "./connection/serial_connection.js";
|
||||
import NodeJSSerialConnection from "./connection/nodejs_serial_connection.js";
|
||||
import WebSerialConnection from "./connection/web_serial_connection.js";
|
||||
|
|
@ -11,7 +11,7 @@ import BufferUtils from "./buffer_utils.js";
|
|||
|
||||
export {
|
||||
Connection,
|
||||
BleConnection,
|
||||
WebBleConnection,
|
||||
SerialConnection,
|
||||
NodeJSSerialConnection,
|
||||
WebSerialConnection,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue