update sumo_id and server

This commit is contained in:
Silver Kuusik 2018-09-12 14:12:54 +02:00
parent 6bef582405
commit 77063f40a5

View File

@ -1,6 +1,6 @@
// The local/remote server URL // The local/remote server URL
//var ROBOT_SERVER = '192.168.2.1:80'; //var ROBOT_SERVER = '192.168.2.1:80';
var ROBOT_SERVER = 'ws.achex.ca:4010'; var ROBOT_SERVER = '165.227.140.64:80';
// The sumorobot object // The sumorobot object
var sumorobot; var sumorobot;
@ -204,7 +204,7 @@ window.addEventListener('load', function() {
$('.btn-robot-go').click(function() { $('.btn-robot-go').click(function() {
// Get and validate the selected robot ID // Get and validate the selected robot ID
var robotId = $('#robot-id').val().trim().toLowerCase(); var robotId = $('#robot-id').val().trim().toLowerCase();
if (robotId === '' || /^([a-f0-9]{6})$/.test(robotId) == false) { if (robotId === '' || /^([a-f0-9]{8})$/.test(robotId) == false) {
$('#robot-id, #robot-label').addClass('has-error'); $('#robot-id, #robot-label').addClass('has-error');
return; return;
} else { } else {