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

Error connecting to device: Error: Call to device timed out #327

Open
klosto opened this issue Jan 28, 2024 · 0 comments
Open

Error connecting to device: Error: Call to device timed out #327

klosto opened this issue Jan 28, 2024 · 0 comments

Comments

@klosto
Copy link

klosto commented Jan 28, 2024

Hello,
I am new in miio and I am trying to connect to my Xiaomi yeelight lightstrip v2 (Model: yeelink.light.strip2). But while connecting node returns me error code: 'timeout'.

My code:

const miio = require('miio');

miio.device({ address: "192.168.0.31", token: "d7ec9e44d59e7808b22a3334be864e0f" })
    .then(device => {
        console.log('Connected to device:');
        console.log(device);
        // You can now interact with the device
    })
    .catch(err => {
        console.error('Error connecting to device:', err);
    });
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