reaper7 / SDM_Energy_Meter

reading SDM72 SDM120 SDM220 SDM230 SDM630 modbus energy meters from arduino (esp8266, esp32, avr)
240 stars 97 forks source link

reading multiple registers at once #82

Closed geronet1 closed 3 months ago

geronet1 commented 10 months ago

I wanted to request multiple values from the SDM630 to save time to get a reading interval of 1 second. It works perfect. Reading 20 registers in 100 ms with a RESPONSE_TIMEOUT of 1 is no problem.

reaper7 commented 9 months ago

I don't have the physical possibility to check the functioning of the code but I would be happy to include your work. so... has everything been checked by you? examples compile and basic configuration works?

P.S. please keep my & your comments as they originally were (from 81chr)

Adminius commented 2 months ago

@reaper7 are you planing to do a new release with this feature?

reaper7 commented 2 months ago

@Adminius - I have no way to check it, the only way is through feedback. Have you checked this feature?

Besides, I need to add comments to the readme...

Adminius commented 2 months ago

ok, I'll check

Readme is already there: https://github.com/reaper7/SDM_Energy_Meter?tab=readme-ov-file#reading

reaper7 commented 2 months ago

some comments, not about multiple reading ;)

Adminius commented 1 month ago

@reaper7 https://github.com/reaper7/SDM_Energy_Meter/pull/85 tested ;)