possible fix of broadcast

This commit is contained in:
DJ2LS 2023-10-21 12:11:06 +02:00
parent df3be3134d
commit e4642fc49d
3 changed files with 15 additions and 8 deletions

View file

@ -78,7 +78,7 @@ alert("not yet implemented")
role="rig-control-tablist"
>
<a
class="py-1 list-group-item list-group-item-action"
class="py-1 ps-1 pe-1 list-group-item list-group-item-action"
id="list-rig-control-none-list"
data-bs-toggle="list"
href="#list-rig-control-none"
@ -89,7 +89,7 @@ alert("not yet implemented")
>None/Vox</a
>
<a
class="py-1 list-group-item list-group-item-action"
class="py-1 ps-1 pe-1 list-group-item list-group-item-action"
id="list-rig-control-rigctld-list"
data-bs-toggle="list"
href="#list-rig-control-rigctld"
@ -100,7 +100,7 @@ alert("not yet implemented")
>Rigctld</a
>
<a
class="py-1 list-group-item list-group-item-action"
class="py-1 ps-1 pe-1 list-group-item list-group-item-action"
id="list-rig-control-tci-list"
data-bs-toggle="list"
href="#list-rig-control-tci"

View file

@ -14,7 +14,7 @@ const chat = useChatStore(pinia);
import { useStateStore } from "../store/stateStore.js";
const state = useStateStore(pinia);
import { sendMessage } from "./sock.js";
import { sendMessage, sendBroadcastChannel } from "./sock.js";
import { displayToast } from "./popupHandler.js";
@ -191,7 +191,8 @@ let newChatObj: messageDefaultObject = {
};
sendMessage(newChatObj)
//sendMessage(newChatObj)
sendBroadcastChannel(newChatObj)
addObjToDatabase(newChatObj);
}

View file

@ -825,9 +825,15 @@ export function sendFecIsWriting(mycallsign) {
}
// SEND FEC TO BROADCASTCHANNEL
export function sendBroadcastChannel(channel, data_out, uuid) {
let checksum = "";
let command = "";
//export function sendBroadcastChannel(channel, data_out, uuid) {
export function sendBroadcastChannel(obj) {
let checksum = obj.checksum;
let command = obj.command;
let uuid = obj.uuid;
let channel = obj.dxcallsign
let data_out = obj.msg
let data = btoa_FD(
"m" +
split_char +