plc4x
plc4x copied to clipboard
feat: First draft of a publication API (Still needs some fine-tuning)
Initial version of a publication API, which is intended to mirror the subscription API. It is currently only needed for the coming Profinet NG driver, which allows not only subscribing, but also publishing data cyclically.
Admittedly I'm not 100% happy with our current Subscription part ... but I'd currently try to keep the Publication API in line with the current Subscription API.
Publication API is a good idea. I remember that I had to implement some workarounds for canopen above plc4x api, just to keep other bus participants happy. Also, some tools/chips may have their way to handle "publish" tasks due to time requirements - from this point of view having a higher level API to draw contract for applications is definitely a step forward!