mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
request userinfo burst
This commit is contained in:
parent
9507e18294
commit
2603769ab8
4 changed files with 15 additions and 2 deletions
|
@ -272,6 +272,13 @@ window.addEventListener("DOMContentLoaded", () => {
|
|||
});
|
||||
});
|
||||
|
||||
document.getElementById("requestUserInfo").addEventListener("click", () => {
|
||||
ipcRenderer.send("run-tnc-command", {
|
||||
command: "requestUserInfo",
|
||||
dxcallsign: selected_callsign,
|
||||
});
|
||||
});
|
||||
|
||||
document.getElementById("ping").addEventListener("click", () => {
|
||||
ipcRenderer.send("run-tnc-command", {
|
||||
command: "ping",
|
||||
|
|
|
@ -2576,6 +2576,11 @@ ipcRenderer.on("run-tnc-command", (event, arg) => {
|
|||
if (arg.command == "mode") {
|
||||
sock.set_mode(arg.mode);
|
||||
}
|
||||
|
||||
if (arg.command == "requestUserInfo") {
|
||||
sock.sendRequestInfo(arg.dxcallsign);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
// IPC ACTION FOR AUTO UPDATER
|
||||
|
|
|
@ -686,9 +686,9 @@ function sendRequest(dxcallsign, mode, frames, data, command) {
|
|||
}
|
||||
|
||||
//Send station info request
|
||||
exports.sendRequestInfo = function (dxcallsign, mode, frames) {
|
||||
exports.sendRequestInfo = function (dxcallsign) {
|
||||
//Command 0 = user/station information
|
||||
sendRequest(dxcallsign, mode, frames, "0", "req");
|
||||
sendRequest(dxcallsign, 255, 1, "0", "req");
|
||||
};
|
||||
|
||||
//STOP TRANSMISSION
|
||||
|
|
|
@ -529,6 +529,7 @@
|
|||
type="button"
|
||||
class="btn btn-warning w-75"
|
||||
aria-label="Request"
|
||||
id="requestUserInfo"
|
||||
>
|
||||
Request user data
|
||||
</button>
|
||||
|
|
Loading…
Reference in a new issue