Command1061.cs 550 B

12345678910111213141516171819202122
  1. using ProjectManagementSystem.Device.Core;
  2. using ProjectManagementSystem.Device.Extenions;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace ProjectManagementSystem.Device.Command
  9. {
  10. public class Command1061 : IDeviceCommand
  11. {
  12. private byte[] buffer = new byte[10] { 0x10, 0x61, 0, 0, 0, 0, 0, 0, 0, 0x03 };
  13. public virtual byte[] Serialization()
  14. {
  15. buffer[8] = buffer.XOR_Check(8);
  16. return buffer;
  17. }
  18. }
  19. }