Template:Networking rut9m manual input output status: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
{{#switch:{{{name}}}|RUT956|RUT906= | {{#switch:{{{name}}}|RUT956|RUT906|RUT976= | ||
<pre> | <pre> | ||
ioman.gpio.din1 - 4PIN input | ioman.gpio.din1 - 4PIN input | ||
| Line 37: | Line 37: | ||
<li>"value": "<b>1</b>" means high level state.</li> | <li>"value": "<b>1</b>" means high level state.</li> | ||
</ul> | </ul> | ||
</li>{{#switch:{{{name}}}|RUT956|RUT906= | </li>{{#switch:{{{name}}}|RUT956|RUT906|RUT976= | ||
<li><b>relay0</b> is the relay: | <li><b>relay0</b> is the relay: | ||
<ul> | <ul> | ||
| Line 46: | Line 46: | ||
</ul> | </ul> | ||
{{#switch:{{{name}}}|RUT956|RUT906= | {{#switch:{{{name}}}|RUT956|RUT906|RUT976= | ||
To change relay settings, use the <i><b>update</i></b> command and specify a state: | To change relay settings, use the <i><b>update</i></b> command and specify a state: | ||
Latest revision as of 15:54, 20 February 2025
ioman.gpio.din1 - 4PIN input ioman.gpio.dout1 - 4PIN output
Call command ubus call value status :
root@Teltonika-{{{name}}}:~# ubus call ioman.gpio.din1 status
{
"value": "0",
"direction": "in",
"bi_dir": false,
"invert_input": false
}
- din1 is the input:
- "value": "0" means low level state.
- "value": "1" means high level state.
- dout1 is the output:
- "value": "0" means low level state.
- "value": "1" means high level state.