koalazak / dorita980

Unofficial iRobot Roomba and Braava (i7/i7+, 980, 960, 900, e5, 690, 675, m6, etc) node.js library (SDK) to control your robot
MIT License
932 stars 147 forks source link

Status commands don't seem to work on the E5 3.4.46 #100

Closed NederBelg closed 4 years ago

NederBelg commented 4 years ago

Stop / pause / clean work fine

getTime / discovery / getMission not

var dorita980 = require('dorita980');

var myRobotViaLocal = new dorita980.Local('xx', 'xxx', 'xxx. ' );

myRobotViaLocal.getMission() .then((mission) => { console.log(mission); }).catch((err) => { console.log(err); });

This seems to run for ever, no output. Do I something wrong?

the discovery sample script returns: undefined. Again do I something wrong?

koalazak commented 4 years ago

please update the library to 3.1.6 version and try getBasicMission() instead of getMission(). I also updated the documentation of getMission() method to explain why it doesn;t work on E5 robots. thank you!