You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unofficial TwinCAT function for HTTP requests with json conversion
This open source library allow any beckhoff PLC (Windows CE based PLCs are not supported 😥 - see this issue) to make API requests with an HTTP/HTTPS client.
If you are going to buy the TF6760 | TC3 IoT HTTPS/REST (planned for End 2019, not realized yet - Dec '19) you should first read this page and wonder how open-source software can simplify your life.
Key features
NO Licence costs (This software is free also for commercial uses)
support HTTP/HTTPS API calls
support all API methods (GET, POST, PUT, DELETE, HEAD, OPTIONS, PATCH, MERGE, COPY)
reads any Json body with complex nested structures (it also works with json lists of object as API response)
parse any Json response to plc structure
Prepare your PLC
Install the unofficial TwinCAT Function TFU001 on your target system
This software can parse and convert normal DUTs (also nested DUTs) into Json object thaks to the power of TwinCAT.JsonExtension.
The only things you have to do is to add the JSON attribute to your code like follows and specify if your field has another json-name or can be used with its own name.