Class SystemModule
- Namespace
- KasaTapoClient
- Assembly
- KasaTapoClient.dll
Provides module-style access to system information for a device.
public sealed class SystemModule
- Inheritance
-
SystemModule
- Inherited Members
Properties
Alias
Gets the latest device alias.
public string Alias { get; }
Property Value
HardwareVersion
Gets the latest hardware version.
public string? HardwareVersion { get; }
Property Value
Info
Gets the latest raw system information payload.
public DeviceSystemInfo? Info { get; }
Property Value
MacAddress
Gets the latest device MAC address.
public string? MacAddress { get; }
Property Value
Model
Gets the latest device model.
public string? Model { get; }
Property Value
OnSince
Gets the derived timestamp for when the device was turned on.
public DateTimeOffset? OnSince { get; }
Property Value
OnTime
Gets the reported device on-time duration.
public TimeSpan? OnTime { get; }
Property Value
Rssi
Gets the reported device RSSI in dBm.
public int? Rssi { get; }
Property Value
- int?
SoftwareVersion
Gets the latest software version.
public string? SoftwareVersion { get; }
Property Value
Methods
UpdateAsync(CancellationToken)
Refreshes system information from the device.
public Task UpdateAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenThe cancellation token for the operation.
Returns
- Task
A task that completes when the system information is refreshed.