nova proba

Committer:
bosko001
Date:
Sun Apr 12 17:59:57 2020 +0000
Revision:
5:c9a908749d4c
Parent:
3:1196befeace0
Child:
12:cbfc10c15437
12.04.2020; napravljena class C_HTMLparse; treba napraviti obradu POST upita

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