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,8 +43,16 @@
<span class="value" id="clientIP">---</span>
</div>
<div class="row">
<span class="label"># TCP clients</span>
<span class="label"># clients</span>
<span class="value" id="numClients">---</span>
</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>
<button id="reset">Reset</button>

View File

@ -306,10 +306,10 @@ function updateMsgDetails(key, details) {
let counters={
count2Kin: 'NMEA2000 in',
count2Kout: 'NMEA2000 out',
countTCPServerin: 'TCPserver in',
countTCPServerout: 'TCPserver out',
countTCPclientin: 'TCPclient in',
countTCPclientout: 'TCPclient out',
countTCPin: 'TCPserver in',
countTCPout: 'TCPserver out',
countTCPClientin: 'TCPclient in',
countTCPClientout: 'TCPclient out',
countUSBin: 'USB in',
countUSBout: 'USB out',
countSERIn: 'Serial in',
@ -1362,7 +1362,9 @@ function sourceName(v){
if (v == 0) return "N2K";
if (v == 1) return "USB";
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 "---";
}
let lastSelectList=[];