ESP-IDF
bt_mesh_cfg_srv::hb_pub
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
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_cfg_srv::hb_pub
bt_mesh_cfg_srv::hb_pub field
Syntax
Show:
Summary
Declaration
from
cfg_srv.h:39
struct
bt_mesh_hb_pub
{
struct
k_delayed_work
timer
;
uint16_t
dst
;
uint16_t
count
;
uint8_t
period
;
uint8_t
ttl
;
uint16_t
feat
;
uint16_t
net_idx
;
}
hb_pub
;
Examples
References
from
examples
Code
Location
Referrer
}
hb_pub
;
cfg_srv.h:48
if
(
cfg
->
hb_pub
.
feat
&
BLE_MESH_FEAT_PROXY
)
{
cfg_srv.c:955
gatt_proxy_set()
if
(
(
cfg
->
hb_pub
.
feat
&
BLE_MESH_FEAT_RELAY
)
&&
change
)
{
cfg_srv.c:1067
relay_set()
cfg
->
hb_pub
.
dst
=
BLE_MESH_ADDR_UNASSIGNED
;
cfg_srv.c:2470
hb_pub_disable()
cfg
->
hb_pub
.
count
=
0U
;
cfg_srv.c:2471
hb_pub_disable()
cfg
->
hb_pub
.
ttl
=
0U
;
cfg_srv.c:2472
hb_pub_disable()
cfg
->
hb_pub
.
period
=
0U
;
cfg_srv.c:2473
hb_pub_disable()
k_delayed_work_cancel
(
&
cfg
->
hb_pub
.
timer
)
;
cfg_srv.c:2475
hb_pub_disable()
if
(
cfg
->
hb_pub
.
feat
&
BLE_MESH_FEAT_FRIEND
)
{
cfg_srv.c:3000
friend_set()
net_buf_simple_add_le16
(
&
msg
,
cfg
->
hb_pub
.
dst
)
;
cfg_srv.c:3225
hb_pub_send_status()
net_buf_simple_add_u8
(
&
msg
,
hb_pub_count_log
(
cfg
->
hb_pub
.
count
)
)
;
cfg_srv.c:3226
hb_pub_send_status()
net_buf_simple_add_u8
(
&
msg
,
cfg
->
hb_pub
.
period
)
;
cfg_srv.c:3227
hb_pub_send_status()
net_buf_simple_add_u8
(
&
msg
,
cfg
->
hb_pub
.
ttl
)
;
cfg_srv.c:3228
hb_pub_send_status()
net_buf_simple_add_le16
(
&
msg
,
cfg
->
hb_pub
.
feat
)
;
cfg_srv.c:3229
hb_pub_send_status()
net_buf_simple_add_le16
(
&
msg
,
cfg
->
hb_pub
.
net_idx
)
;
cfg_srv.c:3230
hb_pub_send_status()
cfg
->
hb_pub
.
dst
=
dst
;
cfg_srv.c:3293
heartbeat_pub_set()
cfg
->
hb_pub
.
period
=
param
->
period_log
;
cfg_srv.c:3294
heartbeat_pub_set()
cfg
->
hb_pub
.
feat
=
feat
&
BLE_MESH_FEAT_SUPPORTED
;
cfg_srv.c:3295
heartbeat_pub_set()
cfg
->
hb_pub
.
net_idx
=
idx
;
cfg_srv.c:3296
heartbeat_pub_set()
cfg
->
hb_pub
.
count
=
hb_pwr2
(
param
->
count_log
,
1
)
;
cfg_srv.c:3302
heartbeat_pub_set()
cfg
->
hb_pub
.
ttl
=
param
->
ttl
;
cfg_srv.c:3303
heartbeat_pub_set()
k_delayed_work_submit
(
&
cfg
->
hb_pub
.
timer
,
K_NO_WAIT
)
;
cfg_srv.c:3333
heartbeat_pub_set()
k_delayed_work_cancel
(
&
cfg
->
hb_pub
.
timer
)
;
cfg_srv.c:3335
heartbeat_pub_set()
hb_pub
.
timer
.
work
)
;
cfg_srv.c:3528
hb_publish()
BT_DBG
(
"hb_pub.count: %u"
,
cfg
->
hb_pub
.
count
)
;
cfg_srv.c:3532
hb_publish()
sub
=
bt_mesh_subnet_get
(
cfg
->
hb_pub
.
net_idx
)
;
cfg_srv.c:3534
hb_publish()
cfg
->
hb_pub
.
net_idx
)
;
cfg_srv.c:3537
hb_publish()
cfg
->
hb_pub
.
dst
=
BLE_MESH_ADDR_UNASSIGNED
;
cfg_srv.c:3538
hb_publish()
if
(
cfg
->
hb_pub
.
count
==
0U
)
{
cfg_srv.c:3542
hb_publish()
period_ms
=
hb_pwr2
(
cfg
->
hb_pub
.
period
,
1
)
*
1000U
;
cfg_srv.c:3546
hb_publish()
if
(
period_ms
&&
cfg
->
hb_pub
.
count
>
1
)
{
cfg_srv.c:3547
hb_publish()
k_delayed_work_submit
(
&
cfg
->
hb_pub
.
timer
,
period_ms
)
;
cfg_srv.c:3548
hb_publish()
if
(
cfg
->
hb_pub
.
count
!=
0xffff
)
{
cfg_srv.c:3553
hb_publish()
cfg
->
hb_pub
.
count
--
;
cfg_srv.c:3554
hb_publish()
k_delayed_work_init
(
&
cfg
->
hb_pub
.
timer
,
hb_publish
)
;
cfg_srv.c:3624
cfg_srv_init()
cfg
->
hb_pub
.
net_idx
=
BLE_MESH_KEY_UNUSED
;
cfg_srv.c:3625
cfg_srv_init()
k_delayed_work_free
(
&
cfg
->
hb_pub
.
timer
)
;
cfg_srv.c:3655
cfg_srv_deinit()
cfg
->
hb_pub
.
dst
=
BLE_MESH_ADDR_UNASSIGNED
;
cfg_srv.c:3656
cfg_srv_deinit()
return
&
conf
->
hb_pub
;
cfg_srv.c:3826
bt_mesh_hb_pub_get()
if
(
conf
&&
conf
->
hb_pub
.
net_idx
==
sub
->
net_idx
)
{
cfg_srv.c:3847
bt_mesh_subnet_del()
.
net_idx
=
cfg
->
hb_pub
.
net_idx
,
heartbeat.c:76
bt_mesh_heartbeat_send()
.
addr
=
cfg
->
hb_pub
.
dst
,
heartbeat.c:78
bt_mesh_heartbeat_send()
.
send_ttl
=
cfg
->
hb_pub
.
ttl
,
heartbeat.c:79
bt_mesh_heartbeat_send()
.
sub
=
bt_mesh_subnet_get
(
cfg
->
hb_pub
.
net_idx
)
,
heartbeat.c:83
bt_mesh_heartbeat_send()
if
(
cfg
->
hb_pub
.
dst
==
BLE_MESH_ADDR_UNASSIGNED
)
{
heartbeat.c:90
bt_mesh_heartbeat_send()
hb
.
init_ttl
=
cfg
->
hb_pub
.
ttl
;
heartbeat.c:94
bt_mesh_heartbeat_send()
BT_INFO
(
"InitTTL %u feat 0x%04x"
,
cfg
->
hb_pub
.
ttl
,
feat
)
;
heartbeat.c:114
bt_mesh_heartbeat_send()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
bt_mesh_cfg_srv::hb_pub
is read by 11 functions:
All items filtered out
bt_mesh_cfg_srv::hb_pub
gatt_proxy_set()
relay_set()
hb_pub_disable()
friend_set()
hb_pub_send_status()
heartbeat_pub_set()
hb_publish()
cfg_srv_init()
cfg_srv_deinit()
bt_mesh_subnet_del()
bt_mesh_heartbeat_send()
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out