From 2292898f1a741f178455890b781b95e0e830d992 Mon Sep 17 00:00:00 2001 From: DJ2LS <75909252+DJ2LS@users.noreply.github.com> Date: Sun, 12 Feb 2023 17:45:03 +0100 Subject: [PATCH] introduced send fec command --- gui/sock.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gui/sock.js b/gui/sock.js index 2cc197b2..a5794889 100644 --- a/gui/sock.js +++ b/gui/sock.js @@ -678,6 +678,13 @@ exports.sendTestFrame = function () { writeTncCommand(command); }; +// SEND FEC +exports.sendFEC = function (mode, payload) { + command = '{"type" : "fec", "command" : "send_fec", "mode" : "' + mode + '", "payload" : "' + payload + '"}'; + writeTncCommand(command); +}; + + // RECORD AUDIO exports.record_audio = function () { command = '{"type" : "set", "command" : "record_audio"}';