sendCommand

abstract suspend fun sendCommand(message: Byte, params: ByteArray? = null): ByteArray?

Send any command to the Lock. The response is a ByteArray, structured as follows: [COMMAND_RESULT_STATUS, OTHER_INFORMATION].

Parameters

message
  • message in Byte format ex. 0x50

params
  • list of parameters (in Byte format), there are optional ex. 0x02 as "Force unlock" parameter to "Unlock" command