This Repository is regarding using Mercury Api for C language mercuryapi-1.29.4.34.zip.
Just Clone the Repository
cd MercuryApi-Using-C/
bash setup.sh
To run sample code go to
cd source_directory/c/src/api
and Run
./read tmr:///dev/ttyUSB0 --ant 1 --pow 500
#Change ttyUSB0 according to your System comport
open compileRFID file in editor
and change the path of include variable to path where "source_directory/c/src/api" is located
example: my path is
/home/pi/MercuryApi-Using-C/Mercury_rfid/mercuryapi-1.29.4.34/c/src/api
save & exit
Then
sudo chmod u+x compileRFID
./compileRFID programName
Do NOT include the ".c"
It will create an executable with name : programName
To run that type ./programName ……
This is a simple bash script.
All thanks to Sparksfun Forum from where I met paulvha
paulvha
📖