Skip to main content

IDeviceMonitor

Monitors device channels and periodically refreshes their cached state.

Namespace: ControlBee.Interfaces

Extends: IDisposable

Methods

Add

Adds a device channel to be monitored.

void Add(IDeviceChannel channel);

Parameters:

  • channel — The device channel to monitor.

Start

Starts the monitoring loop.

void Start();

SetAlwaysUpdate

Marks a specific channel to always refresh its cache on every monitoring cycle.

void SetAlwaysUpdate(string actorName, string itemPath);

Parameters:

  • actorName — The name of the actor owning the channel.
  • itemPath — The item path of the channel.

GetAlwaysUpdate

Checks whether a specific channel is set to always update.

bool GetAlwaysUpdate(string actorName, string itemPath);

Parameters:

  • actorName — The name of the actor owning the channel.
  • itemPath — The item path of the channel.

Returns: true if the channel is set to always update; otherwise, false.

See Also