tcp client status

This commit is contained in:
wellenvogel 2022-01-03 13:37:45 +01:00
parent 469b801e04
commit d0053c7f32
2 changed files with 16 additions and 6 deletions

View File

@ -43,9 +43,17 @@
<span class="value" id="clientIP">---</span> <span class="value" id="clientIP">---</span>
</div> </div>
<div class="row"> <div class="row">
<span class="label"># TCP clients</span> <span class="label"># clients</span>
<span class="value" id="numClients">---</span> <span class="value" id="numClients">---</span>
</div> </div>
<div class="row">
<span class="label">TCP client connected</span>
<span class="value" id="clientCon">---</span>
</div>
<div class="row">
<span class="label">TCP client error</span>
<span class="value" id="clientErr">---</span>
</div>
</div> </div>
<button id="reset">Reset</button> <button id="reset">Reset</button>
</div> </div>

View File

@ -306,10 +306,10 @@ function updateMsgDetails(key, details) {
let counters={ let counters={
count2Kin: 'NMEA2000 in', count2Kin: 'NMEA2000 in',
count2Kout: 'NMEA2000 out', count2Kout: 'NMEA2000 out',
countTCPServerin: 'TCPserver in', countTCPin: 'TCPserver in',
countTCPServerout: 'TCPserver out', countTCPout: 'TCPserver out',
countTCPclientin: 'TCPclient in', countTCPClientin: 'TCPclient in',
countTCPclientout: 'TCPclient out', countTCPClientout: 'TCPclient out',
countUSBin: 'USB in', countUSBin: 'USB in',
countUSBout: 'USB out', countUSBout: 'USB out',
countSERIn: 'Serial in', countSERIn: 'Serial in',
@ -1362,7 +1362,9 @@ function sourceName(v){
if (v == 0) return "N2K"; if (v == 0) return "N2K";
if (v == 1) return "USB"; if (v == 1) return "USB";
if (v == 2) return "SER"; if (v == 2) return "SER";
if (v >= 3) return "TCP"; if (v == 3) return "TCPcl"
if (v >= 4 && v <= 20) return "TCPser";
if (v >= 200) return "USER";
return "---"; return "---";
} }
let lastSelectList=[]; let lastSelectList=[];