.Net Applikation für den PC um den Arduino-FSRemotePowerSwitch zu steuern
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

12345678910111213141516171819202122232425262728293031323334353637383940
  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_VELOCITY_CAM = "Velocity_Cam";
  24. public static string CMD_ZERO_CAM = "Zero_Cam";
  25. public static string CMD_VAL_ON = "On";
  26. public static string CMD_VAL_OFF = "Off";
  27. public static string CMD_VELOCITY_SLOW = "Slow";
  28. public static string CMD_VELOCITY_FAST = "Fast";
  29. public string Sender { get; set; }
  30. public string Cmd { get; set; }
  31. public string Val { get; set; }
  32. }
  33. }