Skip to content

High-level + endian possible? | which way has lowest system load? #80

Answered by aldas
gutschein asked this question in Q&A
Discussion options

You must be logged in to vote

sorry, I did not try it out. $readRegisterAddress has field address and you can you this for extraction

 ->uint32(30845,'battery status',function ($result, $readRegisterAddress, $response) {
        return $response->getWordAt($readRegisterAddress->address)->getUInt32(\ModbusTcpClient\Utils\Endian::BIG_ENDIAN_LOW_WORD_FIRST);
    })

NB: this is on top of my head. I did not try it out :)

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
1 reply
@gutschein
Comment options

Comment options

You must be logged in to vote
8 replies
@gutschein
Comment options

@aldas
Comment options

@aldas
Comment options

@gutschein
Comment options

@gutschein
Comment options

Answer selected by gutschein
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants