void AnalogMeasurementHandler(AnalogData measurement) { //Tracer.Trace("TrackRoamerBrickProximityBoardService::PotMeasurementHandler() analogValue1=" + measurement.analogValue1); try { _state.MostRecentAnalogData = new AnalogDataDssSerializable() { analogValue1 = measurement.analogValue1, TimeStamp = new DateTime(measurement.TimeStamp) }; // // Inform subscribed services that the state has changed. // _submgrPort.Post(new submgr.Submit(_state, DsspActions.ReplaceRequest)); UpdateAnalogData usd = new UpdateAnalogData(); usd.Body = _state.MostRecentAnalogData; base.SendNotification <UpdateAnalogData>(_submgrPort, usd); } catch (Exception e) { _state.LinkState = "Error while receiving POT Data"; LogError(e); } }
void AnalogMeasurementHandler(AnalogData measurement) { //Tracer.Trace("TrackRoamerBrickProximityBoardService::PotMeasurementHandler() analogValue1=" + measurement.analogValue1); try { _state.MostRecentAnalogData = new AnalogDataDssSerializable() { analogValue1 = measurement.analogValue1, TimeStamp = new DateTime(measurement.TimeStamp) }; // // Inform subscribed services that the state has changed. // _submgrPort.Post(new submgr.Submit(_state, DsspActions.ReplaceRequest)); UpdateAnalogData usd = new UpdateAnalogData(); usd.Body = _state.MostRecentAnalogData; base.SendNotification<UpdateAnalogData>(_submgrPort, usd); } catch (Exception e) { _state.LinkState = "Error while receiving POT Data"; LogError(e); } }