@@ -35,8 +35,8 @@ void sendPage(EthernetClient &client, byte reqPage) {
35
35
" Transfer-Encoding: chunked\r\n "
36
36
" \r\n " ));
37
37
chunked.begin ();
38
- chunked.print (F (" <!doctype html>" // the start of the HTTP Body - contains the HTML
39
- " <html lang=en >"
38
+ chunked.print (F (" <!DOCTYPE html>"
39
+ " <html>"
40
40
" <head>"
41
41
" <meta charset=utf-8" ));
42
42
if (reqPage == PAGE_STATUS || reqPage == PAGE_WAIT) chunked.print (F (" http-equiv=refresh content=5" ));
@@ -49,23 +49,25 @@ void sendPage(EthernetClient &client, byte reqPage) {
49
49
chunked.print (F (" >"
50
50
" <title>Modbus RTU ⇒ Modbus TCP/UDP Gateway</title>"
51
51
" <style>"
52
- " a {text-decoration:none;color:white}"
52
+ " html,body{margin:0;height:100%;font-family:sans-serif}"
53
+ " a{text-decoration:none;color:white}"
53
54
" td:first-child {text-align:right;width:30%}"
54
- " th {text-align:left;background-color:#0067AC;color:white;padding:10px}"
55
- " table {width:100%}"
55
+ " th{text-align:left;background-color:#0067AC;color:white;padding:10px;height:0}"
56
+ " table{width:100%}"
57
+ " h1{margin:0}"
56
58
" </style>"
57
59
" </head>"
58
- " <body style='font-family:sans-serif' " ));
60
+ " <body" ));
59
61
#ifdef ENABLE_DHCP
60
62
chunked.print (F (" onload='dis(document.getElementById("box").checked)'>"
61
63
" <script>function dis(st) {var x = document.getElementsByClassName('ip');for (var i = 0; i < x.length; i++) {x[i].disabled = st}}</script" ));
62
64
#endif /* ENABLE_DHCP */
63
65
chunked.print (F (" >"
64
- " <table height=100% style='position:absolute;top:0;bottom:0;left:0;right:0' >"
65
- " <tr style='height:10px' ><th colspan=2>"
66
- " <h1 style='margin:0px' >Modbus RTU ⇒ Modbus TCP/UDP Gateway</h1>" // first row is header
67
- " <tr> " // second row is left menu (first cell) and main page (second cell)
68
- " <th valign=top style=width:20%;padding:0px >"
66
+ " <table height=100%>"
67
+ " <tr><th colspan=2>"
68
+ " <h1>Modbus RTU ⇒ Modbus TCP/UDP Gateway</h1>" // first row is header
69
+ " <tr valign=top> " // second row is left menu (first cell) and main page (second cell)
70
+ " <th style=width:20%;padding:0 >"
69
71
70
72
// Left Menu
71
73
" <table>" ));
@@ -542,15 +544,15 @@ void contentRtu(ChunkedPrint &chunked) {
542
544
" <tr><td>Response Timeout:" ));
543
545
helperInput (chunked);
544
546
chunked.print (POST_TIMEOUT);
545
- chunked.print (F (" min=100 max=9999 value=" ));
547
+ chunked.print (F (" min=100 max=2000 value=" ));
546
548
chunked.print (localConfig.serialTimeout );
547
- chunked.print (F (" > (100~9999 ) ms"
549
+ chunked.print (F (" > (100~2000 ) ms"
548
550
" <tr><td>Retry Attempts:" ));
549
551
helperInput (chunked);
550
- chunked.print (POST_RETRY );
551
- chunked.print (F (" min=1 max=10 value=" ));
552
- chunked.print (localConfig.serialRetry );
553
- chunked.print (F (" > (1~10 )" ));
552
+ chunked.print (POST_ATTEMPTS );
553
+ chunked.print (F (" min=1 max=5 value=" ));
554
+ chunked.print (localConfig.serialAttempts );
555
+ chunked.print (F (" > (1~5 )" ));
554
556
}
555
557
556
558
// Tools
0 commit comments