{"id":16693394,"url":"https://github.com/jurihock/reopen62541","last_synced_at":"2026-04-13T08:31:57.918Z","repository":{"id":146423367,"uuid":"313863487","full_name":"jurihock/reopen62541","owner":"jurihock","description":"C++ and C++/CLI extension for the open62541.org implementation of OPC UA","archived":false,"fork":false,"pushed_at":"2022-05-15T14:18:09.000Z","size":208,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-01T15:57:32.108Z","etag":null,"topics":["client","cpp","cpp-cli","cpp17","csharp","iec-62541","opc","opc-ua","opcua","open62541","server"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jurihock.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-18T08:02:15.000Z","updated_at":"2025-06-05T08:48:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"40a6639b-95e2-4790-b690-9583ab3d4156","html_url":"https://github.com/jurihock/reopen62541","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jurihock/reopen62541","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jurihock%2Freopen62541","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jurihock%2Freopen62541/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jurihock%2Freopen62541/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jurihock%2Freopen62541/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jurihock","download_url":"https://codeload.github.com/jurihock/reopen62541/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jurihock%2Freopen62541/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31746101,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T06:26:45.479Z","status":"ssl_error","status_checked_at":"2026-04-13T06:26:44.645Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["client","cpp","cpp-cli","cpp17","csharp","iec-62541","opc","opc-ua","opcua","open62541","server"],"created_at":"2024-10-12T16:30:17.782Z","updated_at":"2026-04-13T08:31:57.894Z","avatar_url":"https://github.com/jurihock.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# reopen62541\n\nreopen62541 is an attempt to extend the great [open62541](https://github.com/open62541/open62541) by the C++17 and C++/CLI interfaces, to hopefully minimize the syntactic overhead as well as provide a certain syntactic uniformity in C++ and C# environments. The goal is however not to support the complete feature set of the open62541 implementation or even all specified OPC UA nuances. In other words, reopen62541 is not designed for complexity, but for simplicity.\n\n## Features\n\n- Basic server and client instance management\n- Callback based log message forwarding\n- Callback based variable and method binding\n- Template/generics based data type conversion\n- Support of main data types like boolean, integers, floats and strings\n- Support of scalars and vectors\n- Unicode string handling\n\n## Examples\n\n### Create server and client instances\n\n\u003ctable\u003e\n\u003ctr\u003e\n\u003cth\u003eC++\u003c/th\u003e\n\u003cth\u003eC#\u003c/th\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\n\u003cpre\u003e\nua::server server;\u003cbr\u003e\nserver.run_async();\nserver.shutdown();\u003cbr\u003e\nua::client client;\u003cbr\u003e\nclient.connect();\nclient.disconnect();\n\u003c/pre\u003e\n\u003c/td\u003e\n\u003ctd\u003e\n\u003cpre\u003e\nvar server = new UA.Server();\u003cbr\u003e\nserver.RunAsync();\nserver.Shutdown();\u003cbr\u003e\nvar client = new UA.Client();\u003cbr\u003e\nclient.Connect();\nclient.Disconnect();\n\u003c/pre\u003e\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n### Create objects and folders\n\n\u003ctable\u003e\n\u003ctr\u003e\n\u003cth\u003eC++\u003c/th\u003e\n\u003cth\u003eC#\u003c/th\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\n\u003cpre\u003e\nserver.add_object(\n  \"MyObject\",\n  \"The root object\");\u003cbr\u003e\nserver.add_folder(\n  \"MyFolder\",\n  \"Folder inside object\",\n  { \"MyObject\" });\n\u003c/pre\u003e\n\u003c/td\u003e\n\u003ctd\u003e\n\u003cpre\u003e\nserver.AddObject(\n  \"MyObject\",\n  \"The root object\");\u003cbr\u003e\nserver.AddFolder(\n  \"MyFolder\",\n  \"Folder inside object\",\n  new[] { \"MyObject\" });\n\u003c/pre\u003e\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n### Implement variables on the server side\n\n\u003ctable\u003e\n\u003ctr\u003e\n\u003cth\u003eC++\u003c/th\u003e\n\u003cth\u003eC#\u003c/th\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\n\u003cpre\u003e\nint variable = 0;\u003cbr\u003e\nserver.add_variable\u0026lt;int\u0026gt;(\n  \"MyVariable\",\n  \"Variable inside folder\",\n  { \"MyObject\", \"MyFolder\" },\n  [\u0026](ua::variant\u0026 output)\n  {\n    output.set\u0026lt;int\u0026gt;(variable);\n  },\n  [\u0026](const ua::variant\u0026 input)\n  {\n    variable = input.get\u0026lt;int\u0026gt;();\n  });\n\u003c/pre\u003e\n\u003c/td\u003e\n\u003ctd\u003e\n\u003cpre\u003e\nint variable = 0;\u003cbr\u003e\nserver.AddVariable\u0026lt;int\u0026gt;(\n  \"MyVariable\",\n  \"Variable inside folder\",\n  new[] { \"MyObject\", \"MyFolder\" },\n  output =\u003e\n  {\n    output.Set\u0026lt;int\u0026gt;(variable);\n  },\n  input =\u003e\n  {\n    variable = input.Get\u0026lt;int\u0026gt;();\n  });\n\u003c/pre\u003e\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n### Access variables on the client side\n\n\u003ctable\u003e\n\u003ctr\u003e\n\u003cth\u003eC++\u003c/th\u003e\n\u003cth\u003eC#\u003c/th\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\n\u003cpre\u003e\nint variable = 0;\u003cbr\u003e\nvariable = client.get\u0026lt;int\u0026gt;(\n  \"MyVariable\",\n  { \"MyObject\", \"MyFolder\" });\u003cbr\u003e\nclient.set\u0026lt;int\u0026gt;(\n  \"MyVariable\",\n  { \"MyObject\", \"MyFolder\" },\n  variable);\n\u003c/pre\u003e\n\u003c/td\u003e\n\u003ctd\u003e\n\u003cpre\u003e\nint variable = 0;\u003cbr\u003e\nvariable = client.Get\u0026lt;int\u0026gt;(\n  \"MyVariable\",\n  new[] { \"MyObject\", \"MyFolder\" }); \u003cbr\u003e\nclient.Set\u0026lt;int\u0026gt;(\n  \"MyVariable\",\n  new[] { \"MyObject\", \"MyFolder\" },\n  variable);\n\u003c/pre\u003e\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n# License\n\nThis Source Code Form is subject to the terms of the Mozilla Public License 2.0. The file [LICENSE](LICENSE) contains a copy of the MPL. Alternatively obtain another one at [https://mozilla.org/MPL/2.0](https://mozilla.org/MPL/2.0).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjurihock%2Freopen62541","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjurihock%2Freopen62541","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjurihock%2Freopen62541/lists"}