diff --git a/DOCS.md b/DOCS.md
index 2e57451..4c8d4c5 100644
--- a/DOCS.md
+++ b/DOCS.md
@@ -64,7 +64,7 @@ Emits when a LPF2 Hub device is found.
| Param | Type |
| --- | --- |
-| hub | [WeDo2Hub
](#WeDo2Hub) \| LPF2Hub
|
+| hub | WeDo2SmartHub
\| LPF2Hub
|
diff --git a/README.md b/README.md
index 8eb573d..c038e3d 100644
--- a/README.md
+++ b/README.md
@@ -114,7 +114,7 @@ Emits when a LPF2 Hub device is found.
| Param | Type |
| --- | --- |
-| hub | [WeDo2Hub
](#WeDo2Hub) \| LPF2Hub
|
+| hub | WeDo2SmartHub
\| LPF2Hub
|
diff --git a/lpf2.ts b/lpf2.ts
index 80e4f8f..1e081f2 100644
--- a/lpf2.ts
+++ b/lpf2.ts
@@ -4,7 +4,7 @@ import { BoostMoveHub } from "./boostmovehub";
import { Hub } from "./hub";
import { PUPHub } from "./puphub";
import { PUPRemote } from "./pupremote";
-import { WeDo2Hub } from "./wedo2hub";
+import { WeDo2SmartHub } from "./wedo2smarthub";
import * as Consts from "./consts";
@@ -58,8 +58,8 @@ export class LPF2 extends EventEmitter {
let hub: Hub;
- if (WeDo2Hub.IsWeDo2Hub(peripheral)) {
- hub = new WeDo2Hub(peripheral, this.autoSubscribe);
+ if (WeDo2SmartHub.IsWeDo2SmartHub(peripheral)) {
+ hub = new WeDo2SmartHub(peripheral, this.autoSubscribe);
} else if (BoostMoveHub.IsBoostMoveHub(peripheral)) {
hub = new BoostMoveHub(peripheral, this.autoSubscribe);
} else if (PUPHub.IsPUPHub(peripheral)) {
@@ -92,7 +92,7 @@ export class LPF2 extends EventEmitter {
/**
* Emits when a LPF2 Hub device is found.
* @event LPF2#discover
- * @param {WeDo2Hub | LPF2Hub} hub
+ * @param {WeDo2SmartHub | LPF2Hub} hub
*/
this.emit("discover", hub);
@@ -141,4 +141,4 @@ export class LPF2 extends EventEmitter {
}
export default LPF2;
-export { Hub, WeDo2Hub, BoostMoveHub, PUPHub, PUPRemote, Consts };
+export { Hub, WeDo2SmartHub, BoostMoveHub, PUPHub, PUPRemote, Consts };
diff --git a/wedo2hub.ts b/wedo2smarthub.ts
similarity index 98%
rename from wedo2hub.ts
rename to wedo2smarthub.ts
index 250662e..36963b9 100644
--- a/wedo2hub.ts
+++ b/wedo2smarthub.ts
@@ -15,10 +15,10 @@ const debug = Debug("wedo2hub");
* @class WeDo2Hub
* @extends Hub
*/
-export class WeDo2Hub extends Hub {
+export class WeDo2SmartHub extends Hub {
- public static IsWeDo2Hub (peripheral: Peripheral) {
+ public static IsWeDo2SmartHub (peripheral: Peripheral) {
return (peripheral.advertisement.serviceUuids.indexOf(Consts.BLEServices.WEDO2_SMART_HUB) >= 0);
}