function msg(text) { $("#log").append(text + "<br/>"); }
$(document).ready(function () {
var sess = wialon.core.Session.getInstance();
sess.initSession("https://hst-api.wialon.com");
[{type: "type", data: "avl_unit", flags: 0x1, mode: 0}],
msg('CASE 1: "update_data_flags" before login error: ' + wialon.core.Errors.getErrorText(code));
msg('CASE 1: "update_data_flags" before login success');