示例#1
0
        public static byte[] GenerateExamCommitCmd(Int32 deviceId, object answer)
        {
            string temp = "123412312341232210";

            byte[] cmdData = UidHelper.ToBytes(temp);


            return(GenerateDeviceCmd(deviceId, cmdData, 0, cmdData.Length, Cmd.CommitExam, DeviceState.Validating));
        }
示例#2
0
        public static byte[] GenerateVerifyCmd(Int32 deviceId, string uid)
        {
            var uidBytes = UidHelper.ToBytes(uid);

            return(GenerateDeviceCmd(deviceId, uidBytes, 0, uidBytes.Length, Cmd.VerifyId, DeviceState.Examming));
        }