{"id":26099292,"url":"https://github.com/jwinarske/sdbus-cpp-examples","last_synced_at":"2025-08-17T01:32:33.647Z","repository":{"id":279129494,"uuid":"937801910","full_name":"jwinarske/sdbus-cpp-examples","owner":"jwinarske","description":"C++ DBus examples using sdbus-cpp v2.x","archived":false,"fork":false,"pushed_at":"2025-03-20T05:30:47.000Z","size":401,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-09T05:49:00.115Z","etag":null,"topics":["avahi","bluez","cpp","cpp20","dbus","embedded-linux","geoclue2","hostname1","linux","locale1","login1","resolve1","systemd","timedate1","udisks2","upower"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jwinarske.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,"zenodo":null}},"created_at":"2025-02-23T23:05:57.000Z","updated_at":"2025-05-11T07:40:05.000Z","dependencies_parsed_at":"2025-02-24T00:20:30.695Z","dependency_job_id":"5a3df967-24c0-4fb6-91f6-5353572aa987","html_url":"https://github.com/jwinarske/sdbus-cpp-examples","commit_stats":null,"previous_names":["jwinarske/sdbus-cpp-examples"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jwinarske/sdbus-cpp-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwinarske%2Fsdbus-cpp-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwinarske%2Fsdbus-cpp-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwinarske%2Fsdbus-cpp-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwinarske%2Fsdbus-cpp-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jwinarske","download_url":"https://codeload.github.com/jwinarske/sdbus-cpp-examples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwinarske%2Fsdbus-cpp-examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270796221,"owners_count":24647320,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["avahi","bluez","cpp","cpp20","dbus","embedded-linux","geoclue2","hostname1","linux","locale1","login1","resolve1","systemd","timedate1","udisks2","upower"],"created_at":"2025-03-09T16:35:54.014Z","updated_at":"2025-08-17T01:32:33.611Z","avatar_url":"https://github.com/jwinarske.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sdbus-cpp-examples\n\nExamples using the sdbus-cpp library to communicate with the system bus.\n\nThis approach uses XML interface files to create proxy classes. All members, signals, and properties are available. No\nintrospection is used at runtime.\n\n## Examples\n\nThe basics\n\n* AVAHI - query for services and get state changes\n* BlueZ - discover devices and dump all properties\n* GeoClue2 - start a location session and print updates\n* hostname1 - get the current hostname and get runtime updates\n* locale1 - get the current locale and get runtime updates\n* login1 - access the login1 interface and get runtime updates\n* NetworkManager - access objects and properties\n* resolve1 - resolve a hostname to an IP address\n* timedate1 - get the current time and get runtime updates\n* UPower - get the current battery status and get runtime updates\n* UDisks2 - get all disk info and runtime updates\n\n## Building\n\n    https://github.com/jwinarske/sdbus-cpp-examples.git\n    git submodule update --init --recursive\n    mkdir build \u0026\u0026 cd build\n    cmake .. -GNinja\n    ninja\n\n## Updating proxy files\n\nBuild this project once for artifact `sdbus-c++-xml2cpp`.\n\n    ./generate.sh\n\nIf you re-generate interfaces with a different version of sdbus-cpp, likely you will need to make source code changes.\nThis is the primary reason for using sdbus-cpp as a submodule.\n\n## Connecting to the system bus of a remote target\n\nShare unix socket of remote device\n\n    sudo ssh -nNT -L /root/dbus_on_local:/run/dbus/system_bus_socket root@raspberrypi5.lan\n\nInstall d-spy, run as root\n\n    sudo d-spy\n\nSelect Bus Names `v` `Connect to Other Bus` adding\n\n    unix:path=/root/dbus_on_local","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwinarske%2Fsdbus-cpp-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjwinarske%2Fsdbus-cpp-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwinarske%2Fsdbus-cpp-examples/lists"}