plcpeople / nodeS7

Node.JS library for communication to Siemens S7 PLCs
MIT License
356 stars 120 forks source link

Allow translation callbacks of S7ItemGroup to be async #112

Open gfcittolin opened 4 years ago

gfcittolin commented 4 years ago

The function passed to S7ItemGroup.setTranslationCB() is currently expected to be sync. This prevents us to query its value from an async source (like a database).

We could add support to promise-based translation functions, that would then handle both sync and async cases