HeatingReadPortCommand.cs 468 B

12345678910111213141516171819
  1. namespace SHJX.Service.PortClient.Commands
  2. {
  3. public class HeatingReadPortCommand : IPortCommand
  4. {
  5. public override object Execute(PortEventArgs args)
  6. {
  7. double pv = 0;
  8. double sv = 0;
  9. ReadPVnSV(args.NodeId, ref pv, ref sv);
  10. Dictionary<string, double> temp = new()
  11. {
  12. { "pv", pv },
  13. { "sv", sv }
  14. };
  15. return temp;
  16. }
  17. }
  18. }