added srcid and dstid to the transport protocol

This commit is contained in:
Bogdan Pilyugin 2024-04-05 12:56:39 +02:00
parent 338d9b8c16
commit 6ef6a68e15

View File

@ -126,6 +126,8 @@ function PostDataControlled(varlist, messtype, applytype, onfinished, enable) {
var data = {};
//data.msgid = Math.floor(Date.now() / 1000);
data.msgid = Math.floor(Math.random() * 0x7fffffff);
data.srcid = 'FFFFFFFF';
data.dstid = '0000FFFF'
data.time = new Date().toISOString();
data.msgtype = messtype;
data.payloadtype = 1;