Skip to content

//MLBluetoothSDK/com.masterlock.mlbluetoothsdk/MLProduct/writePrimaryPasscode

writePrimaryPasscode

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

Write a new Primary Passcode. Note that Arrow codes must start with a "U" and be 7-13 characters in length. Numeric codes must be 4-8 characters in length and must not start with a "0"

Parameters

androidJvm

newCode The new code you want set on the lock as single string, e.g. "123456" for number keypads or "UDLRUDL" for directional keypads
callback the result method will include the written value if the command is successful