~aleteoryx/muditaos

ref: 49f4e466092d79231ab1b07986f9e18524161d58 muditaos/module-services/service-bluetooth/doc/bluetooth-pairing-general-view.puml -rw-r--r-- 866 bytes
49f4e466 — rrandomsky [BH-1912] Change snooze chime list to vertical 1 year, 10 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
@startuml
skinparam BackgroundColor F0F0F0

actor "External BT device" as extbt
participant "Worker Bluetooth" as workbt
participant "Service Bluetooth" as srvbt
participant "Database Agent" as sett
participant "Application Settings" as appsett

activate appsett
appsett -> sett : register cb on bonded devices change
    activate sett
appsett <- sett : bonded devices callback
    deactivate sett
        ... ...

appsett->srvbt : pair msg(address)
    activate srvbt
    srvbt -> workbt : command(pair, address)
        deactivate srvbt
        activate workbt
        workbt -> extbt : bond
            activate extbt
        workbt <-- extbt : respond
            deactivate extbt

        workbt -> sett : update bonded devices
        deactivate workbt
            activate sett
appsett <- sett : bonded devices callback
            deactivate sett



@enduml