cancel

abstract fun cancel()

Cancels the read: the observer gets ChipReadState.Stopping, then ChipReadEnding.Cancelled by ChipReadEnding.Cancelled.By.APP at once, unless the read had already ended. The SDK releases the link to the chip in the background after that, so this returns without waiting, even while a command is out. Safe to call more than once and from any thread; only the first call counts, and a read that already ended stays as it ended.