From d0053c7f32e03be5d591075a6a09af5b33c4df77 Mon Sep 17 00:00:00 2001 From: wellenvogel Date: Mon, 3 Jan 2022 13:37:45 +0100 Subject: [PATCH] tcp client status --- web/index.html | 10 +++++++++- web/index.js | 12 +++++++----- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/web/index.html b/web/index.html index 8ae9a09..d6cc011 100644 --- a/web/index.html +++ b/web/index.html @@ -43,8 +43,16 @@ ---
- # TCP clients + # clients --- +
+
+ TCP client connected + --- +
+
+ TCP client error + ---
diff --git a/web/index.js b/web/index.js index 3adfaad..74dcc42 100644 --- a/web/index.js +++ b/web/index.js @@ -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=[];