lib/pzem016/pzem016.rb in pzem016-0.1.2 vs lib/pzem016/pzem016.rb in pzem016-0.1.3

- old
+ new

@@ -92,10 +92,11 @@ ## # Specific logic for generating a hash of the holding registers in a PZEM-016 # def to_hash { + "SlaveAddr": @slave.uid, "DeviceName": @name, "Address": @raw[2], "AlarmWatts": @raw[1] } end @@ -166,9 +167,10 @@ ## # Specific logic for generating a hash of the input registers in a PZEM-016 # def to_hash { + "SlaveAddr": @slave.uid, "DeviceName": @name, "Volts": volts, "Amps": amps, "Watts": watts, "WH": wattHours,