Esempio n. 1
0
        public ActionResult <ConnectionStatus> Get()
        {
            var service = new SmartDASService();

            service.Connect();

            if (SmartDASService.DemoMode == true)
            {
                return(new ConnectionStatus()
                {
                    code = 0,
                    message = "OK",
                    attempts = 0,
                });
            }

            var connectionStatus = service.getConnectionStatus();

            service.Disconnect();

            return(connectionStatus);
        }