Skip to content

Commit

Permalink
Update from regen
Browse files Browse the repository at this point in the history
  • Loading branch information
abeck-riis committed Nov 3, 2023
1 parent 2e5615f commit db890f6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,17 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) {
val value: UInt?
)

class WeightingAttribute(val value: UShort?)
class WeightingAttribute(
val value: UShort?
)

class DataVersionAttribute(val value: UShort?)
class DataVersionAttribute(
val value: UShort?
)

class StableDataVersionAttribute(val value: UShort?)
class StableDataVersionAttribute(
val value: UShort?
)

class LeaderRouterIdAttribute(
val value: UByte?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ import matter.tlv.TlvParsingException
import matter.tlv.TlvReader
import matter.tlv.TlvWriter

class WiFiNetworkDiagnosticsClusterAssociationFailureEvent(
val associationFailureCause: UInt,
val status: UShort
) {
override fun toString(): String = buildString {
import java.util.Optional

class WiFiNetworkDiagnosticsClusterAssociationFailureEvent (
val associationFailureCause: UInt,
val status: UShort) {
override fun toString(): String = buildString {
append("WiFiNetworkDiagnosticsClusterAssociationFailureEvent {\n")
append("\tassociationFailureCause : $associationFailureCause\n")
append("\tstatus : $status\n")
Expand All @@ -50,8 +51,7 @@ class WiFiNetworkDiagnosticsClusterAssociationFailureEvent(

fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : WiFiNetworkDiagnosticsClusterAssociationFailureEvent {
tlvReader.enterStructure(tlvTag)
val associationFailureCause =
tlvReader.getUInt(ContextSpecificTag(TAG_ASSOCIATION_FAILURE_CAUSE))
val associationFailureCause = tlvReader.getUInt(ContextSpecificTag(TAG_ASSOCIATION_FAILURE_CAUSE))
val status = tlvReader.getUShort(ContextSpecificTag(TAG_STATUS))

tlvReader.exitContainer()
Expand Down

0 comments on commit db890f6

Please sign in to comment.