nova proba

Revision:
2:45b351b4fc2a
Child:
3:1196befeace0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/HTMLpage.h	Sun Apr 05 12:56:41 2020 +0000
@@ -0,0 +1,126 @@
+
+const char HTMLpage[] = R"(
+<html>
+    <head>
+
+ </head>
+    <body>
+  <form method="POST" action="#">
+   <table align="center" border="1px">
+    <tr>
+     <td colspan="2" align="center"><span>IP Adresa</span><br/> <input type="text" name="ip_adresa" value="xxx.xxx.xxx.xxx"></input></td>
+     <td colspan="2" align="center"><span>Netmask</span> <br/><input type="text" name="netmask" value="xxx.xxx.xxx.xxx"></input></td>
+     <td align="center"><span>Gateway</span> <br/><input type="text" name="gateway" value="xxx.xxx.xxx.xxx"></input></td>
+    </tr>
+    <tr>
+     <td colspan="2" align="center">
+      <span>UDP</span>
+      <br/>
+      <span>Server port</span>
+      <input type="number" name="udp_server_port" value="65535"></input>
+     </td>
+     <td colspan="2" align="center">
+      <span>TCP</span>
+      <br/>
+      <span>Server port</span>
+      <input type="number" name="tcp_server_port" value="65535"></input>
+     </td>
+     <td align="center"><span>Serial</span></td>
+    </tr>
+    <tr>
+     <td>
+      <span>IP adrese</span> 
+      <hr/> 
+      <input type="text" name="udp_ip_1" value="xxx.xxx.xxx.xxx"></input>
+      <hr/> 
+      <input type="text" name="udp_ip_2" value="xxx.xxx.xxx.xxx"></input>
+      <hr/> 
+      <input type="text" name="udp_ip_3" value="xxx.xxx.xxx.xxx"></input>
+      <hr/> 
+      <input type="text" name="udp_opseg_od" value="xxx.xxx.xxx.xxx"></input>
+      <input type="text" name="udp_opseg_do" value="xxx.xxx.xxx.xxx"></input>
+     </td>
+     <td>
+      <span>Port</span>
+      <hr/>
+      <input type="number" name="udp_port_1" value="65535"></input>
+      <hr/>
+      <input type="number" name="udp_port_2" value="65535"></input>
+      <hr/>
+      <input type="number" name="udp_port_3" value="65535"></input>
+      <hr/>
+      <input type="number" name="udp_port_opseg" value="65535"></input>
+     </td>
+     <td>
+      <span>IP adrese</span> 
+      <hr/> 
+      <input type="text" name="tcp_ip_1" value="xxx.xxx.xxx.xxx"></input>
+      <hr/> 
+      <input type="text" name="tcp_ip_2" value="xxx.xxx.xxx.xxx"></input>
+      <hr/> 
+      <input type="text" name="tcp_ip_3" value="xxx.xxx.xxx.xxx"></input>
+      <hr/>
+      <input type="text" name="tcp_opseg_od" value="xxx.xxx.xxx.xxx"></input>
+      <input type="text" name="tcp_opseg_do" value="xxx.xxx.xxx.xxx"></input>
+     </td>
+     <td>
+      <span>Port</span>
+      <hr/>
+      <input type="number" name="tcp_port_1" value="65535"></input>
+      <hr/>
+      <input type="number" name="tcp_port_2" value="65535"></input>
+      <hr/>
+      <input type="number" name="tcp_port_3" value="65535"></input>
+      <hr/>
+      <input type="number" name="tcp_port_opseg" value="65535"></input>
+     </td>
+     <td align="center">
+      <span>Baud rate</span>
+      <br/>
+      <select name="baud_rate" id="baud_rate">
+       <option value="2400">2400</option>
+       <option value="4800">4800</option>
+       <option value="7200">7200</option>
+       <option value="9600" selected="1">9600</option>
+       <option value="14400">14400</option>
+       <option value="19200">19200</option>
+       <option value="38400">38400</option>
+       <option value="57600">57600</option>
+       <option value="115200">115200</option>
+      </select>
+      <hr/>
+      <span>Parity</span>
+      <br/>
+      <select name="parity" id="parity">
+       <option value="none">None</option>
+       <option value="odd">Odd</option>
+       <option value="even">Even</option>
+       <option value="mark">Mark</option>
+       <option value="space">Space</option>
+      </select>
+      <hr/>
+      <span>Data bits</span>
+      <br/>
+      <select name="data_bits" id="data_bits">
+       <option value="5">5</option>
+       <option value="6">6</option>
+       <option value="7">7</option>
+       <option value="8" selected="1">8</option>
+      </select>
+      <hr/>
+      <span>Stop bits</span>
+      <br/>
+      <select name="stop_bits" id="stop_bits">
+       <option value="1">1</option>
+       <option value="1.5">1.5</option>
+       <option value="2">2</option>
+      </select>
+     </td>
+    </tr>
+    <tr>
+     <td colspan="5" align="center"><input type="submit" value="Sacuvaj"></input></td>
+    </tr>
+   </table>
+  </form>
+    </body>
+</html>)";