Skip to content

Commit

Permalink
Update readme about RTU related changes
Browse files Browse the repository at this point in the history
  • Loading branch information
aldas committed Oct 16, 2022
1 parent b0327cf commit 73695f6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ composer require aldas/modbus-tcp-client
### Utility functions

* [Packet::isCompleteLength](src/Utils/Packet.php) - checks if data is complete Modbus TCP packet
* [Packet::isCompleteLengthRTU()](src/Utils/Packet.php) - checks if data is complete Modbus RTU packet
* [ErrorResponse::is](src/Packet/ErrorResponse.php) - checks if data is Modbus TCP error packet

## Requirements
Expand Down Expand Up @@ -166,6 +167,11 @@ $responseAsTcpPacket = RtuConverter::fromRtu($binaryData);
See Linux example in 'examples/[rtu_usb_to_serial.php](examples/rtu_usb_to_serial.php)'


## Example of Modbus RTU over TCP + higher level API usage

See example in 'examples/[rtu_over_tcp_with_higherlevel_api.php](examples/rtu_over_tcp_with_higherlevel_api.php)'


## Example of non-blocking socket IO with ReactPHP/Amp (i.e. modbus request are run in 'parallel')

* 'examples/[example_parallel_requests_reactphp.php](examples/example_parallel_requests_reactphp.php) - example of non-blocking socket IO with ReactPHP socket library (https://github.com/reactphp/socket)
Expand Down

0 comments on commit 73695f6

Please sign in to comment.