You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);
});
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: