Line 136: |
Line 136: |
| Enabling <b>Post/Get</b> provides the possibility to control the state of an output via HTTP POST/GET requests. The figure below is an example of the Auth Settings section of the Post/Get page. It is used to turn Post/Get requests on or off and to set authentication parameters. | | Enabling <b>Post/Get</b> provides the possibility to control the state of an output via HTTP POST/GET requests. The figure below is an example of the Auth Settings section of the Post/Get page. It is used to turn Post/Get requests on or off and to set authentication parameters. |
| | | |
− | [[File:Networking_rutos_manual_input_output_post_get_auth_settings_v2.png|border|class=tlt-border]] | + | [[File:Networking_rutos_manual_input_output_post_get_auth_settings_v3.png|border|class=tlt-border]] |
| | | |
| <table class="nd-mantable"> | | <table class="nd-mantable"> |
Line 146: |
Line 146: |
| <tr> | | <tr> |
| <td>Enable</td> | | <td>Enable</td> |
− | <td>off | on; default: <b>off</b></td> | + | <td>off {{!}} on; default: <b>off</b></td> |
| <td>Turns Post/Get on or off.</td> | | <td>Turns Post/Get on or off.</td> |
| </tr> | | </tr> |
| <tr> | | <tr> |
| <td>Access</td> | | <td>Access</td> |
− | <td>io_state | io_type | io_value; default: <b>io_state, io_type, io_value</b></td> | + | <td>io_state {{!}} io_type {{!}} io_value {{!}} io_invert; default: <b>io_state, io_type, io_value, io_invert</b></td> |
| <td>Accessible methods. It is considered that all methods are allowed if this list is empty.</td> | | <td>Accessible methods. It is considered that all methods are allowed if this list is empty.</td> |
| </tr> | | </tr> |
Line 198: |
Line 198: |
| <td>Change Configurable Input/Output with pin3 to Output</td> | | <td>Change Configurable Input/Output with pin3 to Output</td> |
| <td><nowiki>http://192.168.</nowiki>{{#switch:{{{series}}}|TRB1|TRB5=2|#default=1}}.1/cgi-bin/<span style="color: #0054a6;"><b>io_type</b></span><nowiki>?username=user1&password=user1&</nowiki><span style="color: #0054a6;"><b>pin=dio0</b></span><span style="color: #3232ff;"><b><nowiki>&type=out</nowiki></b></span></td> | | <td><nowiki>http://192.168.</nowiki>{{#switch:{{{series}}}|TRB1|TRB5=2|#default=1}}.1/cgi-bin/<span style="color: #0054a6;"><b>io_type</b></span><nowiki>?username=user1&password=user1&</nowiki><span style="color: #0054a6;"><b>pin=dio0</b></span><span style="color: #3232ff;"><b><nowiki>&type=out</nowiki></b></span></td> |
| + | </tr> |
| + | <tr> |
| + | <td>Invert configurable input</td> |
| + | <td><nowiki>http://192.168.</nowiki>{{#switch:{{{series}}}|TRB1|TRB5=2|#default=1}}.1/cgi-bin/io_invert?username=user1&password=user1&pin=<dio0/dio1{{#switch:{{{series}}}|TRB2|TRB2M=/dio2}}><span style="color: #0054a6;"><b><nowiki>&invert=<0/1> (0 - disable inversion/1 - enable inversion</nowiki></b></span></td> |
| </tr> | | </tr> |
| | | | | |
Line 207: |
Line 211: |
| <td>Turn Output state to low after 5 seconds for 3 seconds</td> | | <td>Turn Output state to low after 5 seconds for 3 seconds</td> |
| <td><nowiki>http://192.168.</nowiki>{{#switch:{{{series}}}|TRB1|TRB5=2|#default=1}}.1/cgi-bin/io_state?username=user1&password=user1&pin=dout1&state=on<span style="color: #0054a6;"><b><nowiki>&delay=5</nowiki></b></span><span style="color: #3232ff;"><b><nowiki>&time=3</nowiki></b></span></td> | | <td><nowiki>http://192.168.</nowiki>{{#switch:{{{series}}}|TRB1|TRB5=2|#default=1}}.1/cgi-bin/io_state?username=user1&password=user1&pin=dout1&state=on<span style="color: #0054a6;"><b><nowiki>&delay=5</nowiki></b></span><span style="color: #3232ff;"><b><nowiki>&time=3</nowiki></b></span></td> |
| + | </tr> |
| + | <tr> |
| + | <td>Invert input</td> |
| + | <td><nowiki>http://192.168.</nowiki>{{#switch:{{{series}}}|TRB1|TRB5=2|#default=1}}.1/cgi-bin/io_invert?username=user1&password=user1&pin=din1<span style="color: #0054a6;"><b><nowiki>&invert=<0/1> (0 - disable inversion/1 - enable inversion</nowiki></b></span></td> |
| </tr> | | </tr> |
| }} | | }} |
− |
| |
| </table> | | </table> |
| | | |
Line 215: |
Line 222: |
| <ul> | | <ul> |
| <li>192.168.{{#switch:{{{series}}}|TRB1|TRB5=2|#default=1}}.1 - device default LAN IP address; replace it in accordance with your own configuration.</li> | | <li>192.168.{{#switch:{{{series}}}|TRB1|TRB5=2|#default=1}}.1 - device default LAN IP address; replace it in accordance with your own configuration.</li> |
− | {{#ifeq:{{{configurableio}}}|1|<li>io_state or io_type - allows you to change IO state or type.</li>}} | + | {{#ifeq:{{{configurableio}}}|1|<li>io_state,io_type or io_invert- allows you to change IO state, type or invert cofigurable input.</li>}} |
| <li>username - login name from Post/Get configuration.</li> | | <li>username - login name from Post/Get configuration.</li> |
| <li>password- password from Post/Get configuration.</li> | | <li>password- password from Post/Get configuration.</li> |
| <li>state - turn Output on or off.</li> | | <li>state - turn Output on or off.</li> |
| {{#ifeq:{{{configurableio}}}|1|<li>type - turn Configurable Input/Output to Input or Output.</li>}} | | {{#ifeq:{{{configurableio}}}|1|<li>type - turn Configurable Input/Output to Input or Output.</li>}} |
| + | <li>invert - enables inversion on/off (only works with inputs).</li> |
| <li>delay - defines a delay (in seconds) after which the specified action will be performed.</li> | | <li>delay - defines a delay (in seconds) after which the specified action will be performed.</li> |
| <li>time - defines a window of time during which the action will take place. For instance, if you post an <i>on</i> action while specifying <i>time=5</i>, the output will turn on and stay on for 5 seconds before turning off.</li> | | <li>time - defines a window of time during which the action will take place. For instance, if you post an <i>on</i> action while specifying <i>time=5</i>, the output will turn on and stay on for 5 seconds before turning off.</li> |