How to cancel a continuous read

s sadf weafwfwef 3 years 6 months ago
10 1 0

Hi,
I want to start and stop a continuos read by button press.
I have set AimType to ScannerConfig.AimType.CONTINUOUS_READ and TriggerType to Scanner.TriggerType.SOFT_ONCE. With the next scanner.read() the continuous reading starts. But how can I cancel the read? Calling scanner.cancelRead()  seems to have no effect in continuous read mode.

Please Register or Login to post a reply

1 Replies

Y Yanis Dalabiras

The documentation for Continuous Read is here: ScannerConfig.AimType (app API)  but only talks about not re-submitting the read.  I suggest trying scanner disable which should forcibly cancel the current read, though you would need to call enable() after before submitting another read: Scanner (app API) .  I suspect the continuous read feature was designed primarily for use with the hardware trigger.

CONTACT
Can’t find what you’re looking for?