@Aaky, I see what you are asking.
What is needed is the python binding to the C function int pipe_server_get_num_clients(int ch) , which is defined here
pympa_create_pub already is set up to return the MPA channel number, so we would just need to use that channel number of checking the number of clients.
I can implement this, but it will need to wait a few days. That is a good feature to have. If you would like to try implementing it yourself, you can add the bindings to :
https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-mpa-tools/-/blob/pympa-experimental/tools/pympa.cpp (add call to pipe_server_get_num_clients) in a similar way how other functions are called.
add the actual python wrapper to: https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-mpa-tools/-/blob/pympa-experimental/tools/python/pympa.py
then finally, when you call pympa_create_pub, save the pipe id and then pass it to check for clients.
Alex