nova verzija tcp+udp->serial com

Committer:
bosko001
Date:
Sun Apr 05 12:56:41 2020 +0000
Revision:
2:45b351b4fc2a
Child:
3:1196befeace0
n0

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bosko001 2:45b351b4fc2a 1
bosko001 2:45b351b4fc2a 2 const char HTMLpage[] = R"(
bosko001 2:45b351b4fc2a 3 <html>
bosko001 2:45b351b4fc2a 4 <head>
bosko001 2:45b351b4fc2a 5
bosko001 2:45b351b4fc2a 6 </head>
bosko001 2:45b351b4fc2a 7 <body>
bosko001 2:45b351b4fc2a 8 <form method="POST" action="#">
bosko001 2:45b351b4fc2a 9 <table align="center" border="1px">
bosko001 2:45b351b4fc2a 10 <tr>
bosko001 2:45b351b4fc2a 11 <td colspan="2" align="center"><span>IP Adresa</span><br/> <input type="text" name="ip_adresa" value="xxx.xxx.xxx.xxx"></input></td>
bosko001 2:45b351b4fc2a 12 <td colspan="2" align="center"><span>Netmask</span> <br/><input type="text" name="netmask" value="xxx.xxx.xxx.xxx"></input></td>
bosko001 2:45b351b4fc2a 13 <td align="center"><span>Gateway</span> <br/><input type="text" name="gateway" value="xxx.xxx.xxx.xxx"></input></td>
bosko001 2:45b351b4fc2a 14 </tr>
bosko001 2:45b351b4fc2a 15 <tr>
bosko001 2:45b351b4fc2a 16 <td colspan="2" align="center">
bosko001 2:45b351b4fc2a 17 <span>UDP</span>
bosko001 2:45b351b4fc2a 18 <br/>
bosko001 2:45b351b4fc2a 19 <span>Server port</span>
bosko001 2:45b351b4fc2a 20 <input type="number" name="udp_server_port" value="65535"></input>
bosko001 2:45b351b4fc2a 21 </td>
bosko001 2:45b351b4fc2a 22 <td colspan="2" align="center">
bosko001 2:45b351b4fc2a 23 <span>TCP</span>
bosko001 2:45b351b4fc2a 24 <br/>
bosko001 2:45b351b4fc2a 25 <span>Server port</span>
bosko001 2:45b351b4fc2a 26 <input type="number" name="tcp_server_port" value="65535"></input>
bosko001 2:45b351b4fc2a 27 </td>
bosko001 2:45b351b4fc2a 28 <td align="center"><span>Serial</span></td>
bosko001 2:45b351b4fc2a 29 </tr>
bosko001 2:45b351b4fc2a 30 <tr>
bosko001 2:45b351b4fc2a 31 <td>
bosko001 2:45b351b4fc2a 32 <span>IP adrese</span>
bosko001 2:45b351b4fc2a 33 <hr/>
bosko001 2:45b351b4fc2a 34 <input type="text" name="udp_ip_1" value="xxx.xxx.xxx.xxx"></input>
bosko001 2:45b351b4fc2a 35 <hr/>
bosko001 2:45b351b4fc2a 36 <input type="text" name="udp_ip_2" value="xxx.xxx.xxx.xxx"></input>
bosko001 2:45b351b4fc2a 37 <hr/>
bosko001 2:45b351b4fc2a 38 <input type="text" name="udp_ip_3" value="xxx.xxx.xxx.xxx"></input>
bosko001 2:45b351b4fc2a 39 <hr/>
bosko001 2:45b351b4fc2a 40 <input type="text" name="udp_opseg_od" value="xxx.xxx.xxx.xxx"></input>
bosko001 2:45b351b4fc2a 41 <input type="text" name="udp_opseg_do" value="xxx.xxx.xxx.xxx"></input>
bosko001 2:45b351b4fc2a 42 </td>
bosko001 2:45b351b4fc2a 43 <td>
bosko001 2:45b351b4fc2a 44 <span>Port</span>
bosko001 2:45b351b4fc2a 45 <hr/>
bosko001 2:45b351b4fc2a 46 <input type="number" name="udp_port_1" value="65535"></input>
bosko001 2:45b351b4fc2a 47 <hr/>
bosko001 2:45b351b4fc2a 48 <input type="number" name="udp_port_2" value="65535"></input>
bosko001 2:45b351b4fc2a 49 <hr/>
bosko001 2:45b351b4fc2a 50 <input type="number" name="udp_port_3" value="65535"></input>
bosko001 2:45b351b4fc2a 51 <hr/>
bosko001 2:45b351b4fc2a 52 <input type="number" name="udp_port_opseg" value="65535"></input>
bosko001 2:45b351b4fc2a 53 </td>
bosko001 2:45b351b4fc2a 54 <td>
bosko001 2:45b351b4fc2a 55 <span>IP adrese</span>
bosko001 2:45b351b4fc2a 56 <hr/>
bosko001 2:45b351b4fc2a 57 <input type="text" name="tcp_ip_1" value="xxx.xxx.xxx.xxx"></input>
bosko001 2:45b351b4fc2a 58 <hr/>
bosko001 2:45b351b4fc2a 59 <input type="text" name="tcp_ip_2" value="xxx.xxx.xxx.xxx"></input>
bosko001 2:45b351b4fc2a 60 <hr/>
bosko001 2:45b351b4fc2a 61 <input type="text" name="tcp_ip_3" value="xxx.xxx.xxx.xxx"></input>
bosko001 2:45b351b4fc2a 62 <hr/>
bosko001 2:45b351b4fc2a 63 <input type="text" name="tcp_opseg_od" value="xxx.xxx.xxx.xxx"></input>
bosko001 2:45b351b4fc2a 64 <input type="text" name="tcp_opseg_do" value="xxx.xxx.xxx.xxx"></input>
bosko001 2:45b351b4fc2a 65 </td>
bosko001 2:45b351b4fc2a 66 <td>
bosko001 2:45b351b4fc2a 67 <span>Port</span>
bosko001 2:45b351b4fc2a 68 <hr/>
bosko001 2:45b351b4fc2a 69 <input type="number" name="tcp_port_1" value="65535"></input>
bosko001 2:45b351b4fc2a 70 <hr/>
bosko001 2:45b351b4fc2a 71 <input type="number" name="tcp_port_2" value="65535"></input>
bosko001 2:45b351b4fc2a 72 <hr/>
bosko001 2:45b351b4fc2a 73 <input type="number" name="tcp_port_3" value="65535"></input>
bosko001 2:45b351b4fc2a 74 <hr/>
bosko001 2:45b351b4fc2a 75 <input type="number" name="tcp_port_opseg" value="65535"></input>
bosko001 2:45b351b4fc2a 76 </td>
bosko001 2:45b351b4fc2a 77 <td align="center">
bosko001 2:45b351b4fc2a 78 <span>Baud rate</span>
bosko001 2:45b351b4fc2a 79 <br/>
bosko001 2:45b351b4fc2a 80 <select name="baud_rate" id="baud_rate">
bosko001 2:45b351b4fc2a 81 <option value="2400">2400</option>
bosko001 2:45b351b4fc2a 82 <option value="4800">4800</option>
bosko001 2:45b351b4fc2a 83 <option value="7200">7200</option>
bosko001 2:45b351b4fc2a 84 <option value="9600" selected="1">9600</option>
bosko001 2:45b351b4fc2a 85 <option value="14400">14400</option>
bosko001 2:45b351b4fc2a 86 <option value="19200">19200</option>
bosko001 2:45b351b4fc2a 87 <option value="38400">38400</option>
bosko001 2:45b351b4fc2a 88 <option value="57600">57600</option>
bosko001 2:45b351b4fc2a 89 <option value="115200">115200</option>
bosko001 2:45b351b4fc2a 90 </select>
bosko001 2:45b351b4fc2a 91 <hr/>
bosko001 2:45b351b4fc2a 92 <span>Parity</span>
bosko001 2:45b351b4fc2a 93 <br/>
bosko001 2:45b351b4fc2a 94 <select name="parity" id="parity">
bosko001 2:45b351b4fc2a 95 <option value="none">None</option>
bosko001 2:45b351b4fc2a 96 <option value="odd">Odd</option>
bosko001 2:45b351b4fc2a 97 <option value="even">Even</option>
bosko001 2:45b351b4fc2a 98 <option value="mark">Mark</option>
bosko001 2:45b351b4fc2a 99 <option value="space">Space</option>
bosko001 2:45b351b4fc2a 100 </select>
bosko001 2:45b351b4fc2a 101 <hr/>
bosko001 2:45b351b4fc2a 102 <span>Data bits</span>
bosko001 2:45b351b4fc2a 103 <br/>
bosko001 2:45b351b4fc2a 104 <select name="data_bits" id="data_bits">
bosko001 2:45b351b4fc2a 105 <option value="5">5</option>
bosko001 2:45b351b4fc2a 106 <option value="6">6</option>
bosko001 2:45b351b4fc2a 107 <option value="7">7</option>
bosko001 2:45b351b4fc2a 108 <option value="8" selected="1">8</option>
bosko001 2:45b351b4fc2a 109 </select>
bosko001 2:45b351b4fc2a 110 <hr/>
bosko001 2:45b351b4fc2a 111 <span>Stop bits</span>
bosko001 2:45b351b4fc2a 112 <br/>
bosko001 2:45b351b4fc2a 113 <select name="stop_bits" id="stop_bits">
bosko001 2:45b351b4fc2a 114 <option value="1">1</option>
bosko001 2:45b351b4fc2a 115 <option value="1.5">1.5</option>
bosko001 2:45b351b4fc2a 116 <option value="2">2</option>
bosko001 2:45b351b4fc2a 117 </select>
bosko001 2:45b351b4fc2a 118 </td>
bosko001 2:45b351b4fc2a 119 </tr>
bosko001 2:45b351b4fc2a 120 <tr>
bosko001 2:45b351b4fc2a 121 <td colspan="5" align="center"><input type="submit" value="Sacuvaj"></input></td>
bosko001 2:45b351b4fc2a 122 </tr>
bosko001 2:45b351b4fc2a 123 </table>
bosko001 2:45b351b4fc2a 124 </form>
bosko001 2:45b351b4fc2a 125 </body>
bosko001 2:45b351b4fc2a 126 </html>)";