using ProjectManagementSystem.Device.Core; using ProjectManagementSystem.Device.Extenions; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProjectManagementSystem.Device.Command { public class Command1063 : IDeviceCommand { private byte[] buffer = { 0x10, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x73, 0x03 }; public int FPS { get; set; } public byte[] Serialization() { buffer[21] = (byte)(buffer[21] | (FPS << 5)); buffer[22] = buffer.XOR_Check(22); return buffer; } } }