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-net6-script.inc
- Revision:
- 146:6bc151bd7063
- Parent:
- 144:7106252b7abf
diff -r d2bd78be00b2 -r 6bc151bd7063 base/net/web-net6-script.inc
--- a/base/net/web-net6-script.inc Sun Dec 27 16:18:19 2020 +0000
+++ b/base/net/web-net6-script.inc Mon Jan 04 16:09:03 2021 +0000
@@ -36,12 +36,25 @@
" \n"
" let minutes = parseInt(fields[1], 16) / 1000 / 60;\n"
" arp += Math.floor(minutes).toString().padStart(4, ' ');\n"
+" \n"
" arp += ' ';\n"
-" \n"
" arp += Net.makeIp6(fields[2]).padEnd(40, ' ');\n"
+" \n"
" arp += ' ';\n"
+" let mac = Net.makeMac(fields[3]);\n"
+" arp += mac;\n"
" \n"
-" arp += Net.makeMac(fields[3]);\n"
+" let vendor = Net.getVendorFromLocalStorage(mac);\n"
+" if (vendor)\n"
+" {\n"
+" arp += ' ';\n"
+" arp += vendor;\n"
+" }\n"
+" else\n"
+" {\n"
+" Net.addVendorToLocalStorage(mac);\n"
+" }\n"
+" \n"
" arp += '\\r\\n';\n"
"}\n"
"function parseArpLines(text)\n"