Skip to content

Commit

Permalink
update readme with example of unadressable ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
aldas committed Jun 11, 2023
1 parent 206c95a commit 09bd467
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ Request multiple packets with higher level API:
$address = 'tcp://127.0.0.1:5022';
$unitID = 0; // also known as 'slave ID'
$fc3 = ReadRegistersBuilder::newReadHoldingRegisters($address, $unitID)
->unaddressableRanges([[100,110], [1512]])
->bit(256, 15, 'pump2_feedbackalarm_do')
// will be split into 2 requests as 1 request can return only range of 124 registers max
->int16(657, 'battery3_voltage_wo')
Expand Down

0 comments on commit 09bd467

Please sign in to comment.