LTKCPP-- LLRP Toolkit C Plus Plus Library
|
Simple example of LTKCPP that talks to an actual reader. More...
Go to the source code of this file.
Functions | |
int | main (int ac, char *av[]) |
Command main routine. | |
void | usage (char *pProgName) |
Print usage message and exit. |
Simple example of LTKCPP that talks to an actual reader.
This is sometimes called the "LLRP Hello World" program
The steps:
This program can be run with zero, one, or two verbose options (-v). no -v -- Only prints the tag report and errors -v -- Also prints one line progress messages -vv -- Also prints all LLRP messages as XML text
This is sometimes called the "LLRP Hello World" program
The steps: 1. Initialize Library 2. Connect to Reader 3. Enable Impinj Extensions 4. Factory Default LLRP configuration to ensure that the reader is in a known state (since we are relying on the default reader configuration for this simple example) 5. ADD_ROSPEC to tell the reader to perform an inventory 6. ENABLE_ROSPEC 7. START_ROSPEC start the inventory operation 8. Process RFID Data (EPC, RSSI, Timestamp)
This program can be run with zero, one, or two verbose options (-v). no -v -- Only prints the tag report and errors -v -- Also prints one line progress messages -vv -- Also prints all LLRP messages as XML text
Definition in file example1.cpp.
int main | ( | int | ac, |
char * | av[] | ||
) |
Command main routine.
Command synopsis:
example1 [-v[v]] READERHOSTNAME
0 Everything *seemed* to work. 1 Bad usage 2 Run failed
Command synopsis:
example1 [-v 0 -q 1 -p 23432] READERHOSTNAME
0 Everything *seemed* to work. 1 Bad usage 2 Run failed
Definition at line 165 of file example1.cpp.
References usage().
Referenced by convertFile().
void usage | ( | char * | pProgName | ) |
Print usage message and exit.
[in] | nProgName | Program name string |
Definition at line 247 of file example1.cpp.
Referenced by main().