Class DeviceApiHandler
- Namespace
- Kepware.Api.ClientHandler
- Assembly
- Kepware.Api.dll
Handles operations related to device configurations in the Kepware server.
public class DeviceApiHandler
- Inheritance
-
DeviceApiHandler
- Inherited Members
Constructors
- DeviceApiHandler(KepwareApiClient, ILogger<DeviceApiHandler>)
Initializes a new instance of the DeviceApiHandler class.
Methods
- CreateDeviceAsync(Channel, string, string?, IDictionary<string, object>?, CancellationToken)
Creates a new device with the specified name and driver in the specified channel.
- DeleteDeviceAsync(Device, CancellationToken)
Deletes the specified device.
- DeleteDeviceAsync(string, string, CancellationToken)
Deletes the device with the specified name in the specified channel.
- GetOrCreateDeviceAsync(Channel, string, string?, IDictionary<string, object>?, CancellationToken)
Gets or creates a device with the specified name and driver in the specified channel.
- UpdateDeviceAsync(Device, bool, CancellationToken)
Updates the specified device and optionally its tags and tag groups.