Class DeviceConnectionParameters
- Namespace
- KasaTapoClient
- Assembly
- KasaTapoClient.dll
Represents parsed connection metadata similar to python-kasa's DeviceConnectionParameters.
public sealed class DeviceConnectionParameters
- Inheritance
-
DeviceConnectionParameters
- Inherited Members
Constructors
DeviceConnectionParameters(DeviceFamilyKind, DeviceEncryptionKind, int?, bool, int?)
Initializes a new instance of the DeviceConnectionParameters class.
public DeviceConnectionParameters(DeviceFamilyKind deviceFamily, DeviceEncryptionKind encryptionKind, int? loginVersion = null, bool useHttps = false, int? httpPort = null)
Parameters
deviceFamilyDeviceFamilyKindencryptionKindDeviceEncryptionKindloginVersionint?useHttpsboolhttpPortint?
Properties
DeviceFamily
Gets the device family identifier.
public DeviceFamilyKind DeviceFamily { get; }
Property Value
EncryptionKind
Gets the transport encryption identifier.
public DeviceEncryptionKind EncryptionKind { get; }
Property Value
HttpPort
Gets the HTTP port reported by discovery when available.
public int? HttpPort { get; }
Property Value
- int?
LoginVersion
Gets the optional login version.
public int? LoginVersion { get; }
Property Value
- int?
UseHttps
Gets a value indicating whether HTTPS is supported or required.
public bool UseHttps { get; }