Skip to main content

Periodic Polling

You should typically add periodic polls before calling MasterChannel.enable(). However, you can also add or remove periodic polls at any time. You can specify the association to poll, the type of request, and the polling interval.

let mut poll = association
.add_poll(
ReadRequest::ClassScan(Classes::class123()),
Duration::from_secs(5),
)
.await?;

The Request class is a builder type that lets you construct arbitrary READ requests, including:

  • Class reads (0,1,2,3)
  • One- or two-byte range reads
  • All objects (qualifier 0x06) reads for arbitrary variations