/// <summary> /// /// </summary> /// <param name="data"></param> /// <returns></returns> public override CommResultState ProcessReceived(byte[] data) { CommResultState r = GRCommandMaker.CheckReceivedData(Station.Address, GRDef.DEVICE_TYPE, GRDef.FC_READ_SETTINGS, data); if (r == CommResultState.Correct) { byte[] innerDatas = GRCommandMaker.GetReceivedInnerData(data); byte mc = innerDatas[0]; if (mc == GRDef.MC_TEMPERATURE_LINE) { _tl = TemperatureLine.Parse(innerDatas, 1); this._timetempline = TimeTempLine.Parse(innerDatas, 1 + 16); } else { return(CommResultState.DataError); } } return(r); }
/// <summary> /// /// </summary> /// <returns></returns> public byte[] GetBytes() { return(TemperatureLine.Parse(this)); }