Skip to content

//MLBluetoothSDK/com.masterlock.mlbluetoothsdk/MLProduct/writeSecondaryPasscode

writeSecondaryPasscode

[androidJvm]\ open fun writeSecondaryPasscode(index: Int, newCode: String, callback: MLCommandCallback<String>)

Write a new Secondary Passcode. Numeric codes must be 4-8 characters in length and must not start with a "0"

Parameters

androidJvm

index Which of the Secondary Passcodes (1-5) you wish to write to
newCode The new code you want set on the lock as single string, e.g. "123456" for number keypads
callback the result method will include the written value if the command is successful