File: asynchronous-processor.rst

package info (click to toggle)
pymodbus 1.2.0%2Bgit20151013-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,084 kB
  • ctags: 2,155
  • sloc: python: 14,717; makefile: 86
file content (15 lines) | stat: -rw-r--r-- 604 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
==================================================
Asynchronous Processor Example
==================================================

Below is a simplified asynchronous client skeleton that was
submitted by a user of the library.  It can be used as a guide
for implementing more complex pollers or state machines.

Feel free to test it against whatever device you currently have
available.  If you do not have a device to test with, feel free
to run a pymodbus server instance or start the reference tester in
the tools directory.

.. literalinclude:: ../../../examples/common/asynchronous-processor.py