Update sumorobot.js

This commit is contained in:
Silver Kuusik 2018-06-30 18:55:21 +02:00 committed by GitHub
parent 4ca87e89c0
commit 596ccb40e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,7 +64,7 @@ Sumorobot.prototype.connect = function() {
self.watchdogTimer = setInterval(function() {
/* send a ping to the robot */
//console.log("ping the robot")
self.send("ping");
self.send("{'to': 'sumo-" + robotId + "@00000514', 'cmd': 'ping'}");
}, 500);
};
/* when the WebSocket closes */