beautypg.com

ThingMagic Mercury API v1.23.0 User Manual

Page 106

background image

Custom Serial Transport Naming

106

Advanced Customization



Call the factory function with the already-parsed URI (e.g., Reader rdr =

CreateSerialReader(uri))

For new functions, the user needs to modify the code in two places:



Create one new file to implement the serial transport. (We already have files

encapsulating the implementations of SerialReader and LlrpReader.)



Initialize the dispatch table in your application code before calling Reader.Create().

Note

Currently Mercury API supports the addition of custom transport schemes
only for serial readers. The user will not be able to use this scheme addition
for LLRP readers. TMR_setSerialReader() will pop up an “UNSUPPORTED”
message if it is attempted.

Note

Thingmagic universal Reader (“tmr”) scheme does not support user-
generated transport schemes, including the tcp example we provide in the

API SDK.