Table of Contents

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

deviceFamily DeviceFamilyKind
encryptionKind DeviceEncryptionKind
loginVersion int?
useHttps bool
httpPort int?

Properties

DeviceFamily

Gets the device family identifier.

public DeviceFamilyKind DeviceFamily { get; }

Property Value

DeviceFamilyKind

EncryptionKind

Gets the transport encryption identifier.

public DeviceEncryptionKind EncryptionKind { get; }

Property Value

DeviceEncryptionKind

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; }

Property Value

bool