[Python] Is it possible to share the same dynamic object (SDK) between embedded C++ and python

Discussão em 'Python' iniciado por Stack, Setembro 27, 2024.

  1. Stack

    Stack Membro Participativo

    I am developing a system composed of an embedded board, a peripheral and an external computer.
    The embedded board uses a C++ SDK (from peripheral manufacturer) to control the peripheral (peripheral.dll).
    A desktop computer is connected to the board. I can also control the peripheral in python (using that same peripheral.dll).
    The SDK manages ther peripheral through a singleton class PeripheralSDK.

    [​IMG]

    An instance of this class is declared in the embedded processor (in C++). When I connect the desktop to that processor, I want to be able to use all methods exposed by this instance (in python). The desktop communicates to the processor through a gRPC interface.

    Is it possible to share an instance of that PeripheralSDK object from C++ to python, so I can just access all methods exposed by the SDK from there?

    Continue reading...

Compartilhe esta Página