Commit Graph

26 Commits (v1.5)

Author SHA1 Message Date
Mikael Bourhis 5f767ad03e Python wrapper: add RCB subscription example
Signed-off-by: Mikael Bourhis <mikael.bourhis@smile.fr>
3 years ago
Thibaut Vermeulen 8b43a644b1 python service wrapper: add state management for blocking IO in python 3 years ago
Thibaut Vermeulen 26bec663d2 control server for python: add control action handler for operate server 3 years ago
Mikael Bourhis e47601a81e Python wrapper: about the wrapped callbacks, maintain a 'map' of subscribers
The 'callback' function is a part of the 'Subscriber' class.
Once the 'event' (or asynchronous message) is received, the 'Subscriber' object
forwards the data to the 'Handler' object.
With this approach, the 'event' processing algorithm can be defined
in a Python subclass by the user.

Each 'subscriber' class has a function that matches the C function pointer.
But this function is a static method, shared with all instances of the class.
In order to dispatch the message/data to the right instance,
we maintain a dictionary of instantiated objects.

Therfore, we have added the following internal services :
 * bool registerNewSubscriber(EventSubscriber*, id);
 * EventSubscriber* findSubscriber(id);
 * void unregisterSubscriber(id);
5 years ago
Mikael Bourhis b1fc481ab8 Python wrapper: add some quality improvements 5 years ago
Mikael Bourhis da9b77af7a Python wrapper: add handler class for the reception of CommandTermination events 5 years ago
mbourhis 69bf867c41
Mbourhis/python wrapper add missing include to extend python api (#291)
* Python wrapper: add an 'include' directive to have access to the 'mms_type'

* Python wrapper: add an 'include' directive to include the ConfigFileParser API
5 years ago
Mikael Bourhis 401a436c95 Python wrapper: move the 'event handler' classes into a subdirectory 5 years ago
Mikael Bourhis f5b5c0d3ad Python wrapper: add the support of the 'Goose publishing' 5 years ago
Mikael Bourhis 172883478a Python wrapper: declare all the C 'char *buffer' output parameters as a Python output string of 1024 max size
Needed for example for:
  - MmsValue_printToBuffer(values, buffer, buffer_size);
5 years ago
Mikael Bourhis 30f98e54cb Python wrapper: add handler class for the reception of GOOSE events 5 years ago
Mikael Bourhis ca97f2548f Python wrapper: add handler class for the reception of ReportControlBlock events 5 years ago
Mikael Bourhis 7bac935648 Python wrapper: add generic classes for handling events (like ReportControlBlock or GOOSE) 5 years ago
Mikael Bourhis 7c68e3e3f6 Python wrapper: add the support of the 'Goose subscription'
The callback for the processing of the received GOOSE is still missing for now.
5 years ago
Mikael Bourhis c2c7c7171e Python wrapper: add 'user-defined data types' for Timestamp (msSinceEpoch, nsSinceEpoch) 5 years ago
Albert ARIBAUD 92c3d3adb8 Fixed Python 3 bindings support
1. Allow specifying Python interpreter version with BUILD_PYTHON_VERSION

2. Fix Python modules install path generation (would produce spurious
   line feed which would cause destination directory to be
   /usr/lib/python*/dist-packages\n -- note the final \n!
7 years ago
Michael Zillgith b4eab23c12 - updated swig configuration for python 7 years ago
Michael Zillgith 9eb8b17002 - python wrapper: some changes in cmake file 7 years ago
Michael Zillgith a5e15003ce - correcting verions detection for swig (phyton)
- client: adopted TLS code to new async architecture
7 years ago
Steffen Vogel dffe219303 fix version incompatability in Swig 8 years ago
Steffen Vogel 064bfa902e mostly cosmetical cleanup of CMakeLists 8 years ago
Cedric Boudinet 8432ea8a13 Forcing pythonInterp version to be the same that pythonLibs version 9 years ago
Michael Zillgith 9dc1a36568 - renamed README to README.md and now using markdown syntax
- added pyiec61850 tutorial and example thanks to Cédric Boudinet
9 years ago
Michael Zillgith 412e0b8da8 - applied patches for pyiec61850 9 years ago
Michael Zillgith d15e2c73b1 - implemented server side obtain file procedure 9 years ago
Michael Zillgith 1688fd872b - added python bindings 9 years ago