I noticed that if I read only "getApparentPower()" and "getVoltage()" there will by always zero returned by "getApparentPower()".
It seems that "_power" is not updated automatically other than by "getActivePower()" (or by functions which run "getActivePower()" like "getCurrent()" "getReactivePower()" or "getPowerFactor()").
This change makes sure that the "_power" value is updated and it fixed issue for me.
How to reproduce issue:
Try to measure "getApparentPower()" without checking other values.
I noticed that if I read only "
getApparentPower()
" and "getVoltage()
" there will by always zero returned by "getApparentPower()
".It seems that "
_power
" is not updated automatically other than by "getActivePower()
" (or by functions which run "getActivePower()
" like "getCurrent()
" "getReactivePower()
" or "getPowerFactor()
").This change makes sure that the "
_power
" value is updated and it fixed issue for me.How to reproduce issue:
Try to measure "
getApparentPower()
" without checking other values.