Skip to content

Commit 0225d85

Browse files
committed
Electricity data structure added
1 parent c803ab2 commit 0225d85

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

SmartWire.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ Event structure (Based on modbus)
1313
1 - relay/switch/regulator position (0 - off, 255 - on)
1414
2 - temperature
1515
3 - general float value (1 byte for value ID, 4 bytes for value)
16+
4 - electricity
17+
4.1 (byte) - sensor no
18+
4.2 (float) - real power
19+
4.3 (float) - power factor
20+
4.4 (float) - Vrms
21+
4.5 (float) - Irms
22+
4.6 (float) - total kWh consumed per sensor
1623
*/
1724

1825

@@ -112,4 +119,4 @@ class SmartTwoWire: public TwoWire
112119

113120
extern SmartTwoWire SmartWire;
114121

115-
#endif
122+
#endif

0 commit comments

Comments
 (0)