easyConnect
Simplifies reader discovery and connection by combining both operations into one method. Under the hood, this method first discovers readers using the provided discovery configuration, and if a single reader is found, it proceeds to connect to the reader using the provided connection configuration. Note that this method expects a single reader to be discovered based on the provided config and would fail if more than one reader is found during the discovery step. If either the discovery or connection step fails, the readerCallback will be called with an error. If both steps succeed, the readerCallback will be called with the connected reader, and the terminal's connected status will change to CONNECTED.
Return
A Cancelable that allows the operation to be canceled during the discovery phase.
Parameters
The EasyConnectConfiguration containing both discovery and connection configurations.
The callback to be invoked when the entire process completes, either with a connected reader or an error.