CommandBoxReply.cs 525 B

12345678910111213141516171819202122
  1. using ProjectManagementSystem.Device.Extenions;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace ProjectManagementSystem.Device.Command
  8. {
  9. public class CommandBoxReply : CommandBox
  10. {
  11. public byte[] CurrentData { get; set; }
  12. public override byte[] Serialization()
  13. {
  14. CurrentData[1] = Function;
  15. CurrentData[12] = CurrentData.XOR_Check(12);
  16. return CurrentData;
  17. }
  18. }
  19. }