Jakob
Jakob
DDeno
Created by Jakob on 4/30/2024 in #help
Passing C enum to function and read in TypeScript
First of all I am not a trained software developper, so please forgive me if I am missing some basics. I am trying to build a wrapper around a dynamic library to IEC 61850 communication.
On the the exposed functions of that library is IedConnection_connect(..., IedClientError error, ...) , where IedClientError is a enum with 23 entries. To be able to use the library I need to 1. create the enumeration in TypeScript and change it to a type array? to be able to pass it down 2. but then I also need to read the changed error again in TypeScript I am not sure how enumerations are coded and how to decode those in TypeScript again and I was hoping one of you can help me out 🙂 BR, Jakob
18 replies