Skip to content

129 Password Mode Get ​

The phone sends a new instruction to obtain the current addition or verification password mode from ssm_touch, and sesame5 responds with the successful instruction and the mode.

Sequence diagram ​

Data sent by phone ​

Byte0
Dataitem code

item code: SSM_OS3_FINGERPRINT_MODE_GET (121)

Contents returned by ssm_touch ​

Byte43210
Datapw moderesitem codetypeop code

type: SSM2_OP_CODE_RESPONSE(0x07)

item code: SSM_OS3_FINGERPRINT_MODE_GET (121)

res: CMD_RESULT_SUCCESS (0x00)

pw mode ​

0x00-> Verification mode

0x01-> Addition mode

iOS, Android, ESP32 Examples ​

Android Example ​

jsx
  override fun keyBoardPassCodeModeGet(result: CHResult<Byte>) {
      if (checkBle(result)) return
      sendCommand(SesameOS3Payload(SesameItemCode.SSM_OS3_PASSCODE_MODE_GET.value, byteArrayOf())) { res ->
          result.invoke(Result.success(CHResultState.CHResultStateBLE(res.payload[0])))
      }
  }

iOS Example ​

jsx
    func passCodeModeGet(result: @escaping (CHResult<UInt8>)) {
        if (self.checkBle(result)) { return }

        sendCommand(.init(.SSM_OS3_PASSCODE_MODE_GET)) { response in
            result(.success(CHResultStateNetworks(input: response.data[0])))
        }
    }

ESP Example ​

jsx