Ejemplo n.º 1
0
        public static OpenHabRestClient CreateRestClient(string url, bool startEventService = false)
        {
            var restUrl = $"http://{url}:8080/rest";

            var restClient = new OpenHabRestClient(restUrl);

            if (startEventService)
            {
                restClient.EventService.InitializeAsync();
            }
            return(RestClient = restClient);
        }
 public void InitializeConnection()
 {
     _testClient = OpenHab.CreateRestClient(Url, StartEventService);
 }