Last active
June 24, 2024 17:18
-
-
Save parthitce/24a0834a3e019544519c7608002b3345 to your computer and use it in GitHub Desktop.
DBUS + Bluez: Referesh
This file contains hidden or 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 | |
actor User | |
group Application and D-Bus Interaction | |
participant Application #LightBlue | |
participant "D-Bus" as DbusDaemon #LightYellow | |
participant "Bluez D-BUS Service" as BluezAdapter #LightGreen | |
end | |
User -> Application: Initiate read/write\n"Powered" property | |
activate Application | |
Application -> DbusDaemon: D-Bus method call\n(org.freedesktop.DBus.Properties.Get) | |
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 | |
User -> Application: Initiate write\n"Powered" property = false | |
activate Application | |
Application -> DbusDaemon: D-Bus method call\n(org.freedesktop.DBus.Properties.Set) | |
activate DbusDaemon | |
Application -> BluezAdapter: Set\norg.bluez.Adapter1.Powered = false | |
activate BluezAdapter | |
BluezAdapter --> DbusDaemon: Success | |
deactivate BluezAdapter | |
DbusDaemon --> Application: Response with Success | |
deactivate DbusDaemon | |
@enduml |
Author
parthitce
commented
Jun 24, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment