Skip to content

Commit 73695f6

Browse files
committed
Update readme about RTU related changes
1 parent b0327cf commit 73695f6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ composer require aldas/modbus-tcp-client
3030
### Utility functions
3131

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

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

168169

170+
## Example of Modbus RTU over TCP + higher level API usage
171+
172+
See example in 'examples/[rtu_over_tcp_with_higherlevel_api.php](examples/rtu_over_tcp_with_higherlevel_api.php)'
173+
174+
169175
## Example of non-blocking socket IO with ReactPHP/Amp (i.e. modbus request are run in 'parallel')
170176

171177
* '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)

0 commit comments

Comments
 (0)