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-html.c
- Revision:
- 110:8ab752842d25
- Child:
- 144:7106252b7abf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/base/net/web-net4-html.c Tue Apr 30 12:45:08 2019 +0000
@@ -0,0 +1,34 @@
+#include "http.h"
+#include "web-add.h"
+#include "web-nav-base.h"
+
+void WebNet4Html()
+{
+ HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL);
+ WebAddHeader("Net IPv4", "settings.css", "net4.js");
+ WebAddNav(NET4_PAGE);
+ WebAddH1("Net IPv4");
+
+ WebAddH2("ARP");
+ HttpAddText("<code id='ajax-arp'></code>\r\n");
+ WebAddH2("DNS");
+ HttpAddText("<code id='ajax-dns'></code>\r\n");
+
+ WebAddH2("DHCP");
+ WebAddAjaxLabelled("IP4 address", "ajax-local-ip" );
+ WebAddAjaxLabelled("Domain", "ajax-domain-name" );
+ WebAddAjaxLabelled("Host name", "ajax-host-name" );
+ WebAddAjaxLabelled("NTP server", "ajax-ntp-ip" );
+ WebAddAjaxLabelled("DNS server", "ajax-dns-ip" );
+ WebAddAjaxLabelled("DHCP server", "ajax-dhcp-ip" );
+ WebAddAjaxLabelled("Router", "ajax-router-ip" );
+ WebAddAjaxLabelled("Subnet mask", "ajax-subnet-mask" );
+ WebAddAjaxLabelled("Broadcast IP", "ajax-broadcast-ip");
+ WebAddAjaxLabelled("Lease time IP", "ajax-lease-time" );
+ WebAddAjaxLabelled("Renewal T1", "ajax-renewal-t1" );
+ WebAddAjaxLabelled("Renewal T2", "ajax-renewal-t2" );
+ WebAddAjaxLabelled("Elapsed", "ajax-elapsed" );
+
+ WebAddEnd();
+
+}