Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: oldheating gps motorhome heating
Diff: base/net/web-net4-script.inc
- Revision:
- 144:7106252b7abf
- Parent:
- 136:be1d42268b5d
- Child:
- 146:6bc151bd7063
--- a/base/net/web-net4-script.inc Sat Dec 26 19:38:40 2020 +0000
+++ b/base/net/web-net4-script.inc Sat Dec 26 20:02:22 2020 +0000
@@ -15,7 +15,6 @@
"let renewalt2 = '';\n"
"let elapsed = '';\n"
"let arp = '';\n"
-"let dns = '';\n"
"\n"
"function parseArpLine(line)\n"
"{\n"
@@ -35,33 +34,11 @@
" \n"
" arp += '\\r\\n';\n"
"}\n"
-"function parseDnsLine(line)\n"
-"{\n"
-" if (line.length == 0) return;\n"
-" let fields = line.split('\\t');\n"
-" \n"
-" dns += parseInt(fields[0], 16).toString().padStart(2, ' ');\n"
-" \n"
-" let minutes = parseInt(fields[1], 16) / 1000 / 60;\n"
-" dns += Math.floor(minutes).toString().padStart(4, ' ');\n"
-" dns += ' ';\n"
-" dns += Net.makeIp4(fields[2]).padEnd(15, ' ');\n"
-" dns += ' ';\n"
-" dns += fields[3];\n"
-" dns += ' ';\n"
-" dns += fields[4];\n"
-" dns += '\\r\\n';\n"
-"}\n"
"function parseArpLines(text)\n"
"{\n"
" arp = '';\n"
" text.split('\\n').forEach(parseArpLine);\n"
"}\n"
-"function parseDnsLines(text)\n"
-"{\n"
-" dns = '';\n"
-" text.split('\\n').forEach(parseDnsLine);\n"
-"}\n"
"function parseGenLines(text)\n"
"{\n"
" let lines = text.split('\\n');\n"
@@ -84,7 +61,6 @@
" let topics = Ajax.response.split('\\f');\n"
" parseGenLines(topics[0]);\n"
" parseArpLines(topics[1]);\n"
-" parseDnsLines(topics[2]);\n"
"}\n"
"function display()\n"
"{\n"
@@ -104,7 +80,6 @@
" elem = Ajax.getElementOrNull('ajax-renewal-t2' ); if (elem) elem.textContent = renewalt2;\n"
" elem = Ajax.getElementOrNull('ajax-elapsed' ); if (elem) elem.textContent = elapsed;\n"
" elem = Ajax.getElementOrNull('ajax-arp' ); if (elem) elem.textContent = arp;\n"
-" elem = Ajax.getElementOrNull('ajax-dns' ); if (elem) elem.textContent = dns;\n"
"}\n"
"\n"
"Ajax.server = '/net4-ajax';\n"