Skip to content

//MLBluetoothSDK/com.masterlock.mlbluetoothsdk/MLProduct/updateFirmware

updateFirmware

[androidJvm]\ open fun updateFirmware(firmwareVersion: Int)

If the version is valid, the SDK will download the new firmware, put the lock into bootloader mode, disconnect, reconnect and begin updating firmware; progress will be sent to the IMLProductDelegate.firmwareUpdateStatusUpdate delegate

Parameters

androidJvm

firmwareVersion the new version to be applied to a lock

Throws

MLSDKNotInitializedException if MLBLuetoothSDK and it’s Scanner has not been initialized
MLCommandNotAllowedError if your SDK license does not allow this operation