ESP-IDF
+
0
/1 examples
SourceVu will show references to
bt_mesh_model::keys
from the following samples and libraries:
blemesh sample
Symbol previews are coming soon...
Symbols
loading (3/5)...
Files
loading (3/5)...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
bt_mesh_model::keys
bt_mesh_model::keys field
Syntax
Show:
Summary
Declaration
from
access.h:532
uint16_t
keys
[
CONFIG_BLE_MESH_MODEL_KEY_COUNT
]
;
Examples
bt_mesh_model::keys
is referenced by 1 libraries and example projects:
blemesh sample
References
from
0/1
examples
Code
Location
Referrer
uint16_t
keys
[
CONFIG_BLE_MESH_MODEL_KEY_COUNT
]
;
access.h:532
uint16_t
keys
[
CONFIG_BT_MESH_MODEL_KEY_COUNT
]
;
access.h:459
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
mod
->
keys
)
;
i
++
)
{
access.c:359
mod_init()
mod
->
keys
[
i
]
=
BLE_MESH_KEY_UNUSED
;
access.c:360
mod_init()
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
mod
->
keys
)
;
i
++
)
{
access.c:420
mod_deinit()
mod
->
keys
[
i
]
=
BLE_MESH_KEY_UNUSED
;
access.c:421
mod_deinit()
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
mod
->
keys
)
;
i
++
)
{
access.c:555
model_has_key()
if
(
mod
->
keys
[
i
]
==
key
)
{
access.c:556
model_has_key()
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
mod
->
keys
)
;
i
++
)
{
access.c:335
mod_init()
mod
->
keys
[
i
]
=
BT_MESH_KEY_UNUSED
;
access.c:336
mod_init()
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
mod
->
keys
)
;
i
++
)
{
access.c:559
bt_mesh_model_has_key()
if
(
mod
->
keys
[
i
]
==
key
||
access.c:560
bt_mesh_model_has_key()
(
mod
->
keys
[
i
]
==
BT_MESH_KEY_DEV_ANY
&&
access.c:561
bt_mesh_model_has_key()
model
->
keys
[
0
]
=
BLE_MESH_KEY_DEV
;
cfg_cli.c:1262
cfg_cli_init()
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
model
->
keys
)
;
i
++
)
{
cfg_srv.c:301
mod_pub_app_key_bound()
if
(
model
->
keys
[
i
]
==
app_idx
)
{
cfg_srv.c:302
mod_pub_app_key_bound()
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
model
->
keys
)
;
i
++
)
{
cfg_srv.c:396
mod_bind()
if
(
model
->
keys
[
i
]
==
key_idx
)
{
cfg_srv.c:398
mod_bind()
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
model
->
keys
)
;
i
++
)
{
cfg_srv.c:403
mod_bind()
if
(
model
->
keys
[
i
]
==
BLE_MESH_KEY_UNUSED
)
{
cfg_srv.c:404
mod_bind()
model
->
keys
[
i
]
=
key_idx
;
cfg_srv.c:405
mod_bind()
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
model
->
keys
)
;
i
++
)
{
cfg_srv.c:428
mod_unbind()
if
(
model
->
keys
[
i
]
!=
key_idx
)
{
cfg_srv.c:429
mod_unbind()
model
->
keys
[
i
]
=
BLE_MESH_KEY_UNUSED
;
cfg_srv.c:433
mod_unbind()
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
mod
->
keys
)
;
i
++
)
{
cfg_srv.c:2893
mod_app_get()
if
(
mod
->
keys
[
i
]
!=
BLE_MESH_KEY_UNUSED
)
{
cfg_srv.c:2894
mod_app_get()
net_buf_simple_add_le16
(
&
msg
,
mod
->
keys
[
i
]
)
;
cfg_srv.c:2895
mod_app_get()
model
->
keys
[
0
]
=
BLE_MESH_KEY_DEV
;
cfg_srv.c:3610
cfg_srv_init()
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
model
->
keys
)
;
i
++
)
{
cfg_srv.c:281
mod_bind()
if
(
model
->
keys
[
i
]
==
key_idx
)
{
cfg_srv.c:283
mod_bind()
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
model
->
keys
)
;
i
++
)
{
cfg_srv.c:288
mod_bind()
if
(
model
->
keys
[
i
]
==
BT_MESH_KEY_UNUSED
)
{
cfg_srv.c:289
mod_bind()
model
->
keys
[
i
]
=
key_idx
;
cfg_srv.c:290
mod_bind()
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
model
->
keys
)
;
i
++
)
{
cfg_srv.c:313
mod_unbind()
if
(
model
->
keys
[
i
]
!=
key_idx
)
{
cfg_srv.c:314
mod_unbind()
model
->
keys
[
i
]
=
BT_MESH_KEY_UNUSED
;
cfg_srv.c:318
mod_unbind()
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
mod
->
keys
)
;
i
++
)
{
cfg_srv.c:2116
mod_app_get()
if
(
mod
->
keys
[
i
]
!=
BT_MESH_KEY_UNUSED
)
{
cfg_srv.c:2117
mod_app_get()
net_buf_simple_add_le16
(
msg
,
mod
->
keys
[
i
]
)
;
cfg_srv.c:2118
mod_app_get()
model
->
keys
[
0
]
=
BT_MESH_KEY_DEV_LOCAL
;
cfg_srv.c:2609
cfg_srv_init()
return
ARRAY_SIZE
(
MODEL
(
model
)
->
keys
)
;
ext.c:902
bt_mesh_ext_model_get_keys_count()
return
sizeof
(
MODEL
(
model
)
->
keys
)
;
ext.c:907
bt_mesh_ext_model_get_keys_size()
return
MODEL
(
model
)
->
keys
[
index
]
;
ext.c:912
bt_mesh_ext_model_get_key()
MODEL
(
model
)
->
keys
[
index
]
=
key
;
ext.c:917
bt_mesh_ext_model_set_key()
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
model
->
keys
)
;
i
++
)
{
local.c:349
bt_mesh_node_bind_app_key_to_model()
if
(
model
->
keys
[
i
]
==
app_idx
)
{
local.c:350
bt_mesh_node_bind_app_key_to_model()
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
model
->
keys
)
;
i
++
)
{
local.c:356
bt_mesh_node_bind_app_key_to_model()
if
(
model
->
keys
[
i
]
==
BLE_MESH_KEY_UNUSED
)
{
local.c:357
bt_mesh_node_bind_app_key_to_model()
model
->
keys
[
i
]
=
app_idx
;
local.c:358
bt_mesh_node_bind_app_key_to_model()
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
model
->
keys
)
;
i
++
)
{
pvnr_mgmt.c:1107
model_unbind()
if
(
model
->
keys
[
i
]
!=
app_idx
)
{
pvnr_mgmt.c:1108
model_unbind()
model
->
keys
[
i
]
=
BLE_MESH_KEY_UNUSED
;
pvnr_mgmt.c:1112
model_unbind()
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
model
->
keys
)
;
i
++
)
{
pvnr_mgmt.c:1372
bt_mesh_provisioner_bind_local_model_app_idx()
if
(
model
->
keys
[
i
]
==
app_idx
)
{
pvnr_mgmt.c:1373
bt_mesh_provisioner_bind_local_model_app_idx()
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
model
->
keys
)
;
i
++
)
{
pvnr_mgmt.c:1379
bt_mesh_provisioner_bind_local_model_app_idx()
if
(
model
->
keys
[
i
]
==
BLE_MESH_KEY_UNUSED
)
{
pvnr_mgmt.c:1380
bt_mesh_provisioner_bind_local_model_app_idx()
model
->
keys
[
i
]
=
app_idx
;
pvnr_mgmt.c:1381
bt_mesh_provisioner_bind_local_model_app_idx()
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
model
->
keys
)
;
i
++
)
{
settings.c:676
model_set_bind()
model
->
keys
[
i
]
=
BLE_MESH_KEY_UNUSED
;
settings.c:677
model_set_bind()
err
=
bt_mesh_load_core_settings
(
name
,
(
uint8_t
*
)
model
->
keys
,
sizeof
(
model
->
keys
)
,
&
exist
)
;
settings.c:681
model_set_bind()
BT_INFO
(
"Restored Model Bound AppKey, index %s"
,
bt_hex
(
model
->
keys
,
sizeof
(
model
->
keys
)
)
)
;
settings.c:688
model_set_bind()
err
=
bt_mesh_save_core_settings
(
name
,
(
const
uint8_t
*
)
model
->
keys
,
sizeof
(
model
->
keys
)
)
;
settings.c:1907
store_pending_mod_bind()
for
(
k
=
0
;
k
<
ARRAY_SIZE
(
model
->
keys
)
;
k
++
)
{
test.c:103
bt_mesh_device_auto_enter_network()
if
(
model
->
keys
[
k
]
==
BLE_MESH_KEY_UNUSED
)
{
test.c:104
bt_mesh_device_auto_enter_network()
model
->
keys
[
k
]
=
info
->
app_idx
;
test.c:105
bt_mesh_device_auto_enter_network()
for
(
k
=
0
;
k
<
ARRAY_SIZE
(
model
->
keys
)
;
k
++
)
{
test.c:118
bt_mesh_device_auto_enter_network()
if
(
model
->
keys
[
k
]
==
BLE_MESH_KEY_UNUSED
)
{
test.c:119
bt_mesh_device_auto_enter_network()
model
->
keys
[
k
]
=
info
->
app_idx
;
test.c:120
bt_mesh_device_auto_enter_network()
Call Tree
from
0/1
examples
All items filtered out
All items filtered out
Data Use
from
0/1
examples
bt_mesh_model::keys
is read by 20 functions:
All items filtered out
bt_mesh_model::keys
model_set_bind()
store_pending_mod_bind()
mod_init()
mod_deinit()
model_has_key()
mod_pub_app_key_bound()
mod_bind()
mod_unbind()
mod_app_get()
cfg_srv_init()
bt_mesh_node_bind_app_key_to_model()
model_unbind()
bt_mesh_provisioner_bind_local_model_app_idx()
bt_mesh_ext_model_get_keys_count()
bt_mesh_ext_model_get_keys_size()
bt_mesh_ext_model_get_key()
bt_mesh_ext_model_set_key()
cfg_cli_init()
bt_mesh_device_auto_enter_network()
bt_mesh_model_has_key()
All items filtered out
Class Tree
from
0/1
examples
All items filtered out
All items filtered out
Override Tree
from
0/1
examples
All items filtered out
All items filtered out
Implementations
from
0/1
examples
All items filtered out
All items filtered out
Instances
from
0/1
examples
Lifecycle
from
0/1
examples
All items filtered out
All items filtered out