Skip to content

Instantly share code, notes, and snippets.

@parthitce
Created July 6, 2024 17:24
Show Gist options
  • Save parthitce/705be3273cd4e2b65f1fb4b52831b81b to your computer and use it in GitHub Desktop.
Save parthitce/705be3273cd4e2b65f1fb4b52831b81b to your computer and use it in GitHub Desktop.
DBUS + BlueZ: Simple communication representation
@startuml
group Application and D-Bus Interaction
participant Application #LightBlue
participant "D-Bus" as DbusDaemon #LightYellow
participant "Bluez D-BUS Service" as BluezAdapter #LightGreen
end
Application -> DbusDaemon: D-Bus method call\n(org.freedesktop.DBus.Properties.Get)
activate Application
activate DbusDaemon
DbusDaemon -> BluezAdapter: Get\norg.bluez.Adapter1.Powered
activate BluezAdapter
BluezAdapter --> DbusDaemon: Powered=true
deactivate BluezAdapter
DbusDaemon --> Application: Response with Powered=true
deactivate DbusDaemon
@enduml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment