.Net Applikation für den PC um den Arduino-FSRemotePowerSwitch zu steuern
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Message.cs 1.3KB

123456789101112131415161718192021222324252627282930313233343536
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace FSRemotePowerSwitch {
  7. // JSON für FSRemotePowerSwitch
  8. // {
  9. // "sender": "FSRemotePowerSwitch_PC" or "FSRemotePowerSwitch_AN",
  10. // "cmd": "Version" or "Status_Relay" or "Power_Relay" or "Status_Cam" or "Power_Cam" or "Azimut_Cam" or "Zero_Cam",
  11. // "val": "V0.0.1" or "On"/"Off" or "0"
  12. // }
  13. class Message {
  14. public static string CMD_SENDER_PC = "FSRemotePowerSwitch_PC";
  15. public static string CMD_SENDER_AN = "FSRemotePowerSwitch_AN";
  16. public static string CMD_VER = "Version";
  17. public static string CMD_STATUS_RELAY = "Status_Relay";
  18. public static string CMD_POWER_RELAY = "Power_Relay";
  19. public static string CMD_STATUS_CAM = "Status_Cam";
  20. public static string CMD_POWER_CAM = "Power_Cam";
  21. public static string CMD_AZIMUT_CAM = "Azimut_Cam";
  22. public static string CMD_ACT_AZIMUT_CAM = "Actual_Azimut_Cam";
  23. public static string CMD_ZERO_CAM = "Zero_Cam";
  24. public static string CMD_VAL_ON = "On";
  25. public static string CMD_VAL_OFF = "Off";
  26. public string Sender { get; set; }
  27. public string Cmd { get; set; }
  28. public string Val { get; set; }
  29. }
  30. }