pymeasure / pyleco

Python implementation of the Laboratory Experiment COntrol (LECO) protocol
MIT License
9 stars 3 forks source link

Add subscriptions via control protocol #89

Open BenediktBurger opened 3 weeks ago

BenediktBurger commented 3 weeks ago

Idea:

This allows to subscribe to events on other computers without creating a dedicated data protocol network.

BenediktBurger commented 2 weeks ago

Reasoning: Due to the different architectures of the data and control protocol networks, you might want to subscribe to a publishing actor, which you cannot reach via the data protocol.

We can, however use the control protocol to subscribe and to publish messages. (managing the subscribers manually)

This reflects the experience from https://github.com/pymeasure/leco-protocol/issues/2#issuecomment-1405166559 that it is quite simple to use the control protocol only. PUB-SUB does not save on bandwidth anyway.