add: modbus example server and client, requirements and Chinese README - #2978
add: modbus example server and client, requirements and Chinese README#2978sjysjy8868 wants to merge 1 commit into
Conversation
janiversen
left a comment
There was a problem hiding this comment.
Please solve the CI problems (ruff formatting)
Easiest way is to use ./check_ci.sh, that makes the changes automatically.
| @@ -0,0 +1,64 @@ | |||
| #!/usr/bin/env python3 | |||
There was a problem hiding this comment.
This example belongs in examples/contrib, we do not allow files at top level.
| @@ -0,0 +1,47 @@ | |||
| # pymodbus 示例:本地 Modbus TCP 从站(模拟器)与轮询客户端 | |||
There was a problem hiding this comment.
You cannot overwrite the standard README !!!
I suggest you make a directory: examples/contrib/chinese and add your files there.
Or change the names of the files so they start with chinese_
|
|
||
| def main(): | ||
| # Create initial data blocks (100 items each) | ||
| store = ModbusSlaveContext( |
There was a problem hiding this comment.
This is no longer being used, please use SimData instead.
| @@ -0,0 +1,64 @@ | |||
| #!/usr/bin/env python3 | |||
There was a problem hiding this comment.
Please explain what is the difference between the standard example and this one ??
| @@ -0,0 +1 @@ | |||
| pymodbus>=2.5 | |||
There was a problem hiding this comment.
You cannot overwrite the standard requirements.txt !!!
Pymodbus do NOT support python 2.5 !
|
Any progress on the requested changes ??? |
No description provided.