Skip to content

Commit

Permalink
[nrf noup] Fix Android CHIPTool multi-admin commands
Browse files Browse the repository at this point in the history
Commands for opening the commissioning window used too
low duration. Change the duration to 180s.

Signed-off-by: Damian Krolik <[email protected]>
  • Loading branch information
Damian-Nordic committed Jun 6, 2022
1 parent fc6a52c commit cf449fd
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,22 +78,22 @@ class MultiAdminClientFragment : Fragment() {
}

private suspend fun sendBasicCommissioningCommandClick() {
val testDuration = 100
val windowDuration = 180
deviceController.openPairingWindow(
ChipClient.getConnectedDevicePointer(
requireContext(),
addressUpdateFragment.deviceId
), testDuration
), windowDuration
)
}

private suspend fun sendEnhancedCommissioningCommandClick() {
val testDuration = 100
val testIteration = 1000
val windowDuration = 180
val spakeIterationCount = 1000
val devicePointer =
ChipClient.getConnectedDevicePointer(requireContext(), addressUpdateFragment.deviceId)
deviceController.openPairingWindowWithPIN(
devicePointer, testDuration, testIteration.toLong(),
devicePointer, windowDuration, spakeIterationCount.toLong(),
discriminatorEd.text.toString().toInt(), setupPinCodeEd.text.toString().toULong().toLong()
)
}
Expand Down

0 comments on commit cf449fd

Please sign in to comment.