예제 #1
0
        public IHttpActionResult GetDeviceCommands()
        {
            Guid         currentDeviceId = StaticContext.GetCurrentDeviceId();
            DeviceDomain deviceDomain    = new DeviceDomain();

            string[] commands = deviceDomain.GetDeviceCommands(currentDeviceId);
            return(Ok(commands));
        }
예제 #2
0
        public IHttpActionResult GetDeviceConfig()
        {
            DeviceDomain deviceDomain    = new DeviceDomain();
            Guid         currentDeviceId = StaticContext.GetCurrentDeviceId();
            DeviceConfig config          = deviceDomain.GetDeviceConfig(currentDeviceId);

            return(Ok(config));
        }