Пример #1
0
        public Status ReLoadDataForStation(int stationID)
        {
            Status        response   = new Status();
            string        statusCode = "";
            string        errMsg     = "";
            DeviceControl control    = new DeviceControl();

            response.info       = control.ReLoadStationData(stationID, out statusCode, out errMsg);
            response.statusCode = statusCode;
            response.errMsg     = errMsg;
            return(response);
        }
Пример #2
0
        public Status WriteSensorValue(int userID, string sensorID, double value)
        {
            Status        response   = new Status();
            string        statusCode = "";
            string        errMsg     = "";
            DeviceControl control    = new DeviceControl();

            response.info       = control.WriteSensorValue(userID, sensorID, value, out statusCode, out errMsg);
            response.statusCode = statusCode;
            response.errMsg     = errMsg;
            return(response);
        }
Пример #3
0
        public Status ReLoadJZData_RN()
        {
            Status        response   = new Status();
            string        statusCode = "";
            string        errMsg     = "";
            DeviceControl control    = new DeviceControl();

            response.info       = control.ReLoadJZData(out statusCode, out errMsg);
            response.statusCode = statusCode;
            response.errMsg     = errMsg;
            return(response);
        }
Пример #4
0
        public Status WriteJZValue(int userID, int jzID, string fDBAddress, double value)
        {
            Status        response   = new Status();
            string        statusCode = "";
            string        errMsg     = "";
            DeviceControl control    = new DeviceControl();

            response.info       = control.WriteJZValue(userID, jzID, fDBAddress, value, out statusCode, out errMsg);
            response.statusCode = statusCode;
            response.errMsg     = errMsg;
            return(response);
        }