示例#1
0
        public string Get(string deviceid, string audioname)
        {
            if (deviceid.Length != 8)
            {
                return("DeviceID is illegal!");
            }
            log.Info("Remind " + deviceid);
            string msg = _dmServerManager.SendCommandToDeivce(deviceid, COMMAND.REMIND, STAT.UNCHANGING, POWERSTAT.UNCHANGING, audioname);

            log.Info("Reminded " + deviceid);
            return(msg);
        }
示例#2
0
        public string Get(string deviceid, int devicepowerstat)
        {
            if (deviceid.Length != 8)
            {
                return("DeviceID is illegal!");
            }
            log.Info("SetDevicePowerStat " + deviceid + " devicepowerstat " + devicepowerstat);
            string msg = _dmServerManager.SendCommandToDeivce(deviceid, COMMAND.SETUP, STAT.UNCHANGING, (POWERSTAT)devicepowerstat);

            log.Info("SetDevicePowerStat  ed " + deviceid + " msg: " + msg);
            return(msg);
        }
        public string Get(string deviceid, int stat, int powerstat, string audio)
        {
            if (deviceid.Length != 8)
            {
                return("DeviceID is illegal!");
            }
            log.Info("SetDeviceStatAndPowerStat " + deviceid + " devicepowerstat " + powerstat + " stat " + stat);
            string msg = "";

            msg = _dmServerManager.SendCommandToDeivce(deviceid, COMMAND.SETUP, (STAT)stat, (POWERSTAT)powerstat);

            log.Info("SetDeviceStatAndPowerStat ed msg " + msg);
            return(msg);
        }
示例#4
0
        public string Get(string id)
        {
            string msg = _dmServerManager.SendCommandToDeivce(id, COMMAND.ASK, STAT.COMMISSIONEDEXPERIMENT, POWERSTAT.ON);

            return(msg);
        }