Created
July 6, 2024 17:24
-
-
Save parthitce/705be3273cd4e2b65f1fb4b52831b81b to your computer and use it in GitHub Desktop.
DBUS + BlueZ: Simple communication representation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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