No one has replied
Perfect @colrack ! This worked like a charm.
Thank you so much!
You can refer https://github.com/RAKWireless/RAK811_BreakBoard
you need to modify into the main function as well as and the packet preparation for read your pin 2 and sending it
if your board not having gps and other sensor disable those configurations in main
Open two terminal ( run as root )
in first terminal - ( it is to receive the serial data from device )
in second terminal-
echo "at+version" > /dev/ttyUSB0
You should see the version in the first terminal.
Looks like your connection to RAK Support Center was lost, please wait while we try to reconnect.