Jump to content

Template:Networking rut955 manual input output cli: Difference between revisions

no edit summary
No edit summary
No edit summary
 
Line 37: Line 37:
As seen in the example above, you can change the value of an output by using the <i>invert</i> command, which simply turns the current value of the specified output into its opposite state.
As seen in the example above, you can change the value of an output by using the <i>invert</i> command, which simply turns the current value of the specified output into its opposite state.
----
----
To get the value of the analog input use the <i>analog_calc</i> command. For example:
To get the value of the analog input use the <i>cat /sys/class/hwmon/hwmon0/device/in0_input</i> command. Router will show voltage value in '''mV'''. For example:


<pre>
<pre>
root@Teltonika:~# analog_calc
root@Teltonika:~# cat /sys/class/hwmon/hwmon0/device/in0_input
7.2V
950
</pre>
</pre>