mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
added listener for sending data
This commit is contained in:
parent
588d3ecbaa
commit
6321175954
1 changed files with 18 additions and 0 deletions
|
@ -212,6 +212,24 @@ window.addEventListener('DOMContentLoaded', () => {
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
// START TRANSMISSION
|
||||||
|
document.getElementById("startTransmission").addEventListener("click", () => {
|
||||||
|
let Data = {
|
||||||
|
command: "sendFile",
|
||||||
|
dxcallsign: document.getElementById("dxCall").value,
|
||||||
|
mode: document.getElementById("datamode").value,
|
||||||
|
frames: document.getElementById("framesperburst").value,
|
||||||
|
filetype: 'txt',
|
||||||
|
filename: 'testfile',
|
||||||
|
data: '1234567',
|
||||||
|
checksum: '123123123',
|
||||||
|
};
|
||||||
|
ipcRenderer.send('run-tnc-command', Data);
|
||||||
|
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue