diff --git a/lpf2.ts b/lpf2.ts index a74893b..bf52bbb 100644 --- a/lpf2.ts +++ b/lpf2.ts @@ -100,3 +100,6 @@ export class LPF2 extends EventEmitter { } + +export default LPF2; +export { Hub, WeDo2Hub, BoostHub }; diff --git a/vernie.js b/vernie.js index af82160..2fb43b0 100644 --- a/vernie.js +++ b/vernie.js @@ -1,6 +1,6 @@ -const LPF2 = require("."); +const LPF2 = require(".").LPF2; -const lpf2 = new LPF2.LPF2(); +const lpf2 = new LPF2(); lpf2.scan(); lpf2.on("discover", (hub) => {