Here is the script I have written:
./modpoll.bin -m rtu -a 1 -t 4:float -r 159 -b 9600 -s 1 -P none /dev/ttyS2
Got error as below:
@ruggedboard-a5d2x:/data/meter# sh modpoll.sh
modpoll: Unrecognized option or missing option parameter! Try -h for help.
@ruggedboard-a5d2x:/data/meter#
@ruggedboard-a5d2x:/data/meter# sh modpoll.sh
modpoll: Unrecognized option or missing option parameter! Try -h for help.
@ruggedboard-a5d2x:/data/meter#
Please help!
The correct code line for the script is: ./modpoll.bin -m rtu -a 1-t 4:float -r 159 -b 9600 -s 1 -p none /dev/ttyS2