-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
Hey all,
Im a javascript newbie so I might be doing something wrong here but when I call setTemperature it never returns..
My code is
`var MaxCube = require('maxcube');
var myMaxCube = new MaxCube('192.168.0.222', 62910);
myMaxCube.on('connected', function () {
console.log('Connected');
myMaxCube.setTemperature('1381f8',21).then(
function(success)
{
if (success)
{
console.log('Temperature set');
}
else {
console.log('Error setting Temperature');
}
myMaxCube.close();
});
});
myMaxCube.on('closed', function () {
console.log('Connection closed');
});
`
Any ideas?
Metadata
Metadata
Assignees
Labels
No labels