Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot connect to Move Hub #190

Open
zzbazza opened this issue Nov 15, 2024 · 0 comments
Open

Cannot connect to Move Hub #190

zzbazza opened this issue Nov 15, 2024 · 0 comments

Comments

@zzbazza
Copy link

zzbazza commented Nov 15, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant