This repository contains official sample code for the product TF6770|TC3 IoT WebSockets offered by Beckhoff Automation. The sample code is provided as-is under the Zero-Clause BSD license.
Each sample is a self-contained TwinCAT solution with a single PLC project that uses the FB_IotWebSocketClient function block of the Tc3_IotBase library. Open the solution of the sample you are interested in, then build and activate it — only that sample is downloaded to the target system. A sample stays idle until you set the corresponding trigger variable in its MAIN program.
| Folder | Description |
|---|---|
| TF6770_IotWebSocketsSamplePostman | Connects securely to the public Postman Echo WebSocket server, sends a message, and receives the echoed response. Shows custom HTTP handshake headers and overriding the WebSocket callback methods. |
Should you have any questions regarding the provided sample code, please contact your local Beckhoff support team. Contact information can be found on the official Beckhoff website at https://www.beckhoff.com/contact/.
Further information about this sample code can be found on the Beckhoff Information System in the TF6770 documentation.