Hello Paolo,
Thanks for your kind message and sorry for late answer.
I agree that doc should be improved and unfortunately I don’t think that it will not take only 30 minutes :-) Any help on this topic is welcomed.
First we create and start a TCP server which is listening for queries from a master.
A server can handle several slaves that you must create in your code by calling « slave_1 = server.add_slave(slave_id) » where slave_id is an integer
with the new slave, you can add data blocks by calling « slave_1.add_block('0', cst.HOLDING_REGISTERS, 0, 100) »
Please look at the code for definition of the different arguments
Then when the master queries a slave for some values matching a data block, it answer with corresponding values. The value can be changed with « slave.set_values(name, address, values) »
The example is a small console app with some basic commands for setting up the server interactively.
I hope it helps
Best
luc