+data_size with counting
parent
e2c4e322ed
commit
aa9e68b96d
|
|
@ -68,6 +68,7 @@ $(window).ready(function () {
|
||||||
case 'send':
|
case 'send':
|
||||||
return JSON.stringify({
|
return JSON.stringify({
|
||||||
"request_type": "0x01",
|
"request_type": "0x01",
|
||||||
|
"data_size" : String(1 + 4 + 4*packet.data.split(' ').length),
|
||||||
"additional_header": {
|
"additional_header": {
|
||||||
"wrd": packet.wrd,
|
"wrd": packet.wrd,
|
||||||
"auto_increment": packet.inc,
|
"auto_increment": packet.inc,
|
||||||
|
|
@ -147,7 +148,6 @@ $(window).ready(function () {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$('#connect-btn').click(function() {
|
$('#connect-btn').click(function() {
|
||||||
if (!apiIsAlive) {
|
if (!apiIsAlive) {
|
||||||
err_msg_conn("Cannot work without API-Server. Check its health...");
|
err_msg_conn("Cannot work without API-Server. Check its health...");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue