Skip to content

Commit

Permalink
Enhance comments (#1268)
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollon77 authored Oct 6, 2024
1 parent 84f6931 commit eccb81a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/examples/src/examples/MeasuredSocketDevice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ const fakeMeasurementTimer = Time.getPeriodicTimer("fakeMeasurement", 10_000, as
voltage: voltage * 1000,
frequency: frequency * 1000,
},
// For Energy Measurement the set could be done this way but then you need to take about needed events to be sent yourself!
// For Energy Measurement the set could be done this way but this would only update the values as provided.
// The required events needs to be triggered manually.
/*
electricalEnergyMeasurement: {
cumulativeEnergyImported: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ type AtomicElectricalEnergyMeasurement = {
export class ElectricalEnergyMeasurementServerLogic extends ElectricalEnergyMeasurementServerBase {
/**
* Convenience method to set the measurement values for the cluster in an atomic way. This method updates the
* attributes and also sends the events for the imported and exported energy values.
* attributes with the provided data and also sends the events for the imported and exported energy values.
*/
setMeasurement(measurement: AtomicElectricalEnergyMeasurement) {
if (this.features.cumulativeEnergy) {
Expand Down

0 comments on commit eccb81a

Please sign in to comment.