Ejemplo n.º 1
0
        public B2MStateQuery(byte[] inbuf, int index)
        {
            int pos = index + 1;

            machinestate    = (MachineState)inbuf[pos++];
            modulestate     = new ModuleState(inbuf[pos++]);
            temperatureinfo = new TemperatureInfo(inbuf, pos);
            pos            += TemperatureInfo.length;
            sensorstate     = new SensorState(inbuf[pos++]);
        }
Ejemplo n.º 2
0
 public B2MStateQuery(byte[] inbuf, int index)
 {
     int pos = index+1;
     machinestate = (MachineState)inbuf[pos++];
     modulestate = new ModuleState(inbuf[pos++]);
     temperatureinfo = new TemperatureInfo(inbuf, pos);
     pos += TemperatureInfo.length;
     sensorstate = new SensorState(inbuf[pos++]);
 }