Periodic Polling

Periodic polls are typically added to an association before calling MasterChannel.enable() but may be added or removed at any time. The user specifies the association to poll, the type of request, and the polling period.

let mut poll = association
.add_poll(
EventClasses::all().to_classes().to_request(),
Duration::from_secs(5),
)
.await?;

The Request class is a builder type that allows the user to 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