mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 10:04:33 +02:00
changed deviceid to devicename in gui
This commit is contained in:
parent
c5d8f5a259
commit
cadee776e0
|
@ -140,14 +140,14 @@ exports.getDaemonState = function() {
|
|||
// START TNC
|
||||
// ` `== multi line string
|
||||
|
||||
exports.startTNC = function(rx_audio, tx_audio, deviceid, deviceport, pttprotocol, pttport, serialspeed, pttspeed, data_bits, stop_bits, handshake) {
|
||||
exports.startTNC = function(rx_audio, tx_audio, devicename, deviceport, pttprotocol, pttport, serialspeed, pttspeed, data_bits, stop_bits, handshake) {
|
||||
var json_command = JSON.stringify({
|
||||
type: 'SET',
|
||||
command: 'STARTTNC',
|
||||
parameter: [{
|
||||
rx_audio: rx_audio,
|
||||
tx_audio: tx_audio,
|
||||
deviceid: deviceid,
|
||||
devicename: devicename,
|
||||
deviceport: deviceport,
|
||||
pttprotocol: pttprotocol,
|
||||
pttport: pttport,
|
||||
|
@ -172,13 +172,13 @@ exports.stopTNC = function() {
|
|||
}
|
||||
|
||||
// TEST HAMLIB
|
||||
exports.testHamlib = function(deviceid, deviceport, serialspeed, pttprotocol, pttport, pttspeed, data_bits, stop_bits, handshake) {
|
||||
exports.testHamlib = function(devicename, deviceport, serialspeed, pttprotocol, pttport, pttspeed, data_bits, stop_bits, handshake) {
|
||||
|
||||
var json_command = JSON.stringify({
|
||||
type: 'GET',
|
||||
command: 'TEST_HAMLIB',
|
||||
parameter: [{
|
||||
deviceid: deviceid,
|
||||
devicename: devicename,
|
||||
deviceport: deviceport,
|
||||
pttprotocol: pttprotocol,
|
||||
pttport: pttport,
|
||||
|
|
|
@ -46,7 +46,7 @@ client.on('error', function(data) {
|
|||
let Data = {
|
||||
busy_state: "-",
|
||||
arq_state: "-",
|
||||
channel_state: "-",
|
||||
//channel_state: "-",
|
||||
frequency: "-",
|
||||
mode: "-",
|
||||
bandwith: "-",
|
||||
|
@ -133,7 +133,7 @@ client.on('data', function(data) {
|
|||
ptt_state: data['PTT_STATE'],
|
||||
busy_state: data['TNC_STATE'],
|
||||
arq_state: data['ARQ_STATE'],
|
||||
channel_state: data['CHANNEL_STATE'],
|
||||
//channel_state: data['CHANNEL_STATE'],
|
||||
frequency: data['FREQUENCY'],
|
||||
mode: data['MODE'],
|
||||
bandwith: data['BANDWITH'],
|
||||
|
|
Loading…
Reference in a new issue