nova verzija tcp+udp->serial com

Revision:
3:1196befeace0
Parent:
2:45b351b4fc2a
Child:
5:c9a908749d4c
--- a/HTMLpage.h	Sun Apr 05 12:56:41 2020 +0000
+++ b/HTMLpage.h	Wed Apr 08 08:41:16 2020 +0000
@@ -5,122 +5,123 @@
 
  </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>
+      <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="192.168.1.20"></input></td>
+         <td colspan="2" align="center"><span>Netmask</span> <br/><input type="text" name="netmask" value="255.255.255.0"></input></td>
+         <td align="center"><span>Gateway</span> <br/><input type="text" name="gateway" value="192.168.1.1"></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="11000"></input>
+         </td>
+         <td colspan="2" align="center">
+          <span>TCP</span>
+          <br/>
+          <span>Server port</span>
+          <input type="number" name="tcp_server_port" value="12000"></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>)";
+</html>
+)";