{"id":62124,"library":"snap7","title":"Snap7","description":"Snap7 is an open source library for communication with Siemens S7 PLCs.","status":"active","version":"1.4.2","language":"cpp","source_language":null,"source_url":null,"tags":["plc","siemens","industrial","communication"],"install":[{"cmd":"vcpkg install snap7","lang":"bash","label":"vcpkg"},{"cmd":"# CMakeLists.txt\nfind_package(snap7 CONFIG REQUIRED)\ntarget_link_libraries(main PRIVATE snap7::snap7)","lang":"cmake","label":"CMake"}],"dependencies":[],"imports":[{"symbol":"snap7.h","correct":"#include <snap7.h>"}],"quickstart":{"code":"#include \"snap7.h\"\n\nint main() {\n    TS7Client client;\n    client.ConnectTo(\"192.168.0.1\", 0, 1);\n    return 0;\n}","lang":"cpp","description":"Connect to a Siemens S7 PLC."},"warnings":[{"fix":"Link with snap7::snap7 and check platform documentation for additional dependencies.","message":"Snap7 requires platform-specific socket implementations; ensure proper linking on your OS.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"search_vec":"'communic':9,17 'industri':16 'librari':7 'open':5 'plc':14 'plcs':13 's7':12 'siemen':11,15 'snap7':1,2 'sourc':6","created_at":"2026-06-17T05:17:33.553094+00:00","updated_at":"2026-06-17T05:17:33.553094+00:00","problems":[],"ecosystem":"vcpkg","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}