@startuml

:ZB_BDB_SIGNAL_DEVICE_FIRST_START;

if (status == RET_OK) then (yes)
    if (role == coordinator) then (yes)
        :bdb_start_top_level_commissioning(ZB_BDB_NETWORK_FORMATION);
    else (no)
        :start_network_rejoin();
    endif
else (no)
endif


stop

@enduml