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)); }
public static byte[] GenerateVerifyCmd(Int32 deviceId, string uid) { var uidBytes = UidHelper.ToBytes(uid); return(GenerateDeviceCmd(deviceId, uidBytes, 0, uidBytes.Length, Cmd.VerifyId, DeviceState.Examming)); }