mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Shorter UUID for sendMessage
This commit is contained in:
parent
c6b28e2ccc
commit
568329d3be
1 changed files with 8 additions and 1 deletions
|
@ -542,7 +542,14 @@ exports.sendMessage = function(dxcallsign, mode, frames, data, checksum, uuid, c
|
|||
//data = utf8.encode(data)
|
||||
|
||||
//socketLog.info(data)
|
||||
|
||||
//shorten uuid
|
||||
let uuidlast = uuid.lastIndexOf('-');
|
||||
uuidlast +=1;
|
||||
if (uuidlast > 0)
|
||||
{
|
||||
uuid = uuid.substr(uuidlast);
|
||||
//console.log("UUID shortened to: ",uuid);
|
||||
}
|
||||
|
||||
var datatype = "m"
|
||||
data = datatype + split_char + command + split_char + checksum + split_char + uuid + split_char + data
|
||||
|
|
Loading…
Reference in a new issue