Class CloudModule
- Namespace
- KasaTapoClient
- Assembly
- KasaTapoClient.dll
Provides module-style access to cloud connectivity information.
public sealed class CloudModule
- Inheritance
-
CloudModule
- Inherited Members
Properties
IsAvailable
Gets a value indicating whether cloud metadata is currently available.
public bool IsAvailable { get; }
Property Value
IsConnected
Gets whether the device reports an active cloud connection.
public bool? IsConnected { get; }
Property Value
- bool?
IsProvisioned
Gets whether the device reports being provisioned to a cloud account.
public bool? IsProvisioned { get; }
Property Value
- bool?
Server
Gets the configured cloud server, when reported.
public string? Server { get; }
Property Value
State
Gets the latest normalized cloud state.
public CloudConnectionState? State { get; }
Property Value
UserName
Gets the cloud account user name, when reported.
public string? UserName { get; }
Property Value
Methods
UpdateAsync(CancellationToken)
Refreshes cloud-related state.
public Task UpdateAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenThe cancellation token for the operation.
Returns
- Task
A task that completes when the device state has been refreshed.