Skip to content

Cannot connect to Move Hub #190

Description

@zzbazza

When trying to use with Move Hub (88006) got error:
libc++abi: terminating due to uncaught exception of type Napi::Error

const PoweredUP = require('node-poweredup');
const poweredUP = new PoweredUP.PoweredUP();

let hub;

async function connectToHub() {
    return new Promise((resolve, reject) => {
        poweredUP.on("discover", async (discoveredHub) => {
            hub = discoveredHub;
            console.log("Hub connecting");
            // console.log(hub);
            try {
                await hub.connect();
                console.log("Hub connected");
                resolve();
            } catch (error) {
                reject("Connection to hub failed");
            }
        });
        poweredUP.scan();
    });
}

I was able to connect and work with small hub 88009

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions