Yes, input values could be read from SSH/CLI. To connect to device's SSH/CLI use the following credentials:
- SSH/CLI login: root
- SSH/CLI password: <your device's password>
The following commands can be used to read input's value:
- ubus call ioman.gpio.din1 status
- ubus call ioman.gpio.din2 status
- ubus call ioman.gpio.iio status
- ubus call ioman.adc.adc0 status
Similarly, device's outputs can be controlled in the same way:
- ubus call ioman.relay.relay0 status
- ubus call ioman.relay.relay0 update '{"state":"open"}'
- ubus call ioman.relay.relay0 update '{"state":"closed"}'
- ubus call ioman.gpio.dout1 status
- ubus call ioman.gpio.dout1 update '{"value":"0"}'
- ubus call ioman.gpio.dout1 update '{"value":"1"}'
- ubus call ioman.gpio.dout2 status
- ubus call ioman.gpio.dout2 update '{"value":"0"}'
- ubus call ioman.gpio.dout2 update '{"value":"1"}'