Exemplo n.º 1
0
        static void Main(string[] _)
        {
            ASCOM.DriverAccess.ObservingConditions device = new ASCOM.DriverAccess.ObservingConditions("ASCOM.VantagePro.ObservingConditions");

            dynamic json = JsonConvert.DeserializeObject(device.Action("raw-data", ""));

            Console.WriteLine(JsonConvert.SerializeObject(json, Formatting.Indented));
            Console.ReadKey();
        }
Exemplo n.º 2
0
 public string Action(string actionName, string actionParameters)
 {
     if (MyDriverType == 0)
     {
         return(MySSObservingConditions.Action(actionName, actionParameters));
     }
     else
     {
         LogMessage("", "Action {0}, parameters {1} not implemented", actionName, actionParameters);
         throw new ASCOM.ActionNotImplementedException("Action " + actionName + " is not implemented by this driver");
     }
 }