-
I've 2 questions:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
->int16(657, 'battery3_voltage_wo', function ($result, $readRegisterAddress, $response) {
return $response->getWordAt(657)->getInt16(\ModbusTcpClient\Utils\Endian::BIG_ENDIAN_LOW_WORD_FIRST)
}) callback is called after value is extracted and it has access to response so you can overwrite value with new value.
From request point of view couple of requests (I assume those 20 addresses are not that wide apart that many requests are split) does not create much load. |
Beta Was this translation helpful? Give feedback.
-
sorry, I did not try it out.
NB: this is on top of my head. I did not try it out :) |
Beta Was this translation helpful? Give feedback.
sorry, I did not try it out.
$readRegisterAddress
has fieldaddress
and you can you this for extractionNB: this is on top of my head. I did not try it out :)