Skip to content

Commit

Permalink
Update PairingCommand.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
yunhanw-google committed Mar 26, 2024
1 parent 213b270 commit a6eff3a
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,20 +125,20 @@ abstract class PairingCommand(
logger.log(Level.INFO, "onStatusUpdate with status: $status")
}

override fun onPairingComplete(errorCode: Long) {
override fun onPairingComplete(errorCode: UInt) {
logger.log(Level.INFO, "onPairingComplete with error code: $errorCode")
if (errorCode != 0L) {
if (errorCode != 0) {
setFailure("onPairingComplete failure")
}
}

override fun onPairingDeleted(errorCode: Long) {
override fun onPairingDeleted(errorCode: UInt) {
logger.log(Level.INFO, "onPairingDeleted with error code: $errorCode")
}

override fun onCommissioningComplete(nodeId: Long, errorCode: Long) {
override fun onCommissioningComplete(nodeId: Long, errorCode: UInt) {
logger.log(Level.INFO, "onCommissioningComplete with error code: $errorCode")
if (errorCode == 0L) {
if (errorCode == 0) {
setSuccess()
} else {
setFailure("onCommissioningComplete failure")
Expand All @@ -154,7 +154,7 @@ abstract class PairingCommand(
logger.log(Level.INFO, "onReadCommissioningInfo")
}

override fun onCommissioningStatusUpdate(nodeId: Long, stage: String?, errorCode: Long) {
override fun onCommissioningStatusUpdate(nodeId: Long, stage: String?, errorCode: UInt) {
logger.log(Level.INFO, "onCommissioningStatusUpdate")
}

Expand All @@ -178,7 +178,7 @@ abstract class PairingCommand(
logger.log(Level.INFO, "onICDRegistrationInfoRequired")
}

override fun onICDRegistrationComplete(errorCode: Long, icdDeviceInfo: ICDDeviceInfo) {
override fun onICDRegistrationComplete(errorCode: UInt, icdDeviceInfo: ICDDeviceInfo) {
logger.log(
Level.INFO,
"onICDRegistrationComplete with errorCode: $errorCode, symmetricKey: ${icdDeviceInfo.symmetricKey.toHex()}, icdDeviceInfo: $icdDeviceInfo"
Expand Down

0 comments on commit a6eff3a

Please sign in to comment.