bosko lekovic
/
ETHtoCOM_10
nova verzija tcp+udp->serial com
HTMLpage.h@13:03617f6ed112, 2020-05-02 (annotated)
- Committer:
- bosko001
- Date:
- Sat May 02 23:54:44 2020 +0200
- Revision:
- 13:03617f6ed112
- Parent:
- 12:cbfc10c15437
uvecan broj udp socket-a na 6
Who changed what in which revision?
User | Revision | Line number | New 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 | 12:cbfc10c15437 | 11 | <td colspan="2" align="center"><span>IP Adresa</span><br/> <input type="text" name="ip_adresa" value="192.168.1.20"></input></td> |
bosko001 | 12:cbfc10c15437 | 12 | <td colspan="2" align="center"><span>Netmask</span> <br/><input type="text" name="netmask" value="255.255.255.0"></input></td> |
bosko001 | 12:cbfc10c15437 | 13 | <td align="center"><span>Gateway</span> <br/><input type="text" name="gateway" value="192.168.1.1"></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 | 13:03617f6ed112 | 20 | <input type="number" name="udp_server_port" value="13000"></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 | 13:03617f6ed112 | 34 | <input type="text" name="udp_ip_1" value="192.168.1.14"></input> |
bosko001 | 3:1196befeace0 | 35 | <hr/> |
bosko001 | 13:03617f6ed112 | 36 | <input type="text" name="udp_ip_2" value="192.168.1.15"></input> |
bosko001 | 3:1196befeace0 | 37 | <hr/> |
bosko001 | 13:03617f6ed112 | 38 | <input type="text" name="udp_ip_3" value="192.168.1.16"></input> |
bosko001 | 3:1196befeace0 | 39 | <hr/> |
bosko001 | 13:03617f6ed112 | 40 | <input type="text" name="udp_opseg_od" value="192.168.1.17"></input> |
bosko001 | 13:03617f6ed112 | 41 | <input type="text" name="udp_opseg_do" value="192.168.1.18"></input> |
bosko001 | 3:1196befeace0 | 42 | </td> |
bosko001 | 3:1196befeace0 | 43 | <td> |
bosko001 | 3:1196befeace0 | 44 | <span>Port</span> |
bosko001 | 3:1196befeace0 | 45 | <hr/> |
bosko001 | 13:03617f6ed112 | 46 | <input type="number" name="udp_port_1" value="11000"></input> |
bosko001 | 3:1196befeace0 | 47 | <hr/> |
bosko001 | 13:03617f6ed112 | 48 | <input type="number" name="udp_port_2" value="11000"></input> |
bosko001 | 3:1196befeace0 | 49 | <hr/> |
bosko001 | 13:03617f6ed112 | 50 | <input type="number" name="udp_port_3" value="11000"></input> |
bosko001 | 3:1196befeace0 | 51 | <hr/> |
bosko001 | 13:03617f6ed112 | 52 | <input type="number" name="udp_port_opseg" value="11000"></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 | )"; |