Lines Matching full:pub
33 static struct bt_mesh_hb_pub pub; variable
42 cb->pub_sent(&pub); in notify_pub_sent()
61 if (pub.period && pub.count > 1) { in hb_publish_end_cb()
62 k_work_reschedule(&pub_timer, K_SECONDS(pub.period)); in hb_publish_end_cb()
65 if (pub.count != 0xffff) { in hb_publish_end_cb()
66 pub.count--; in hb_publish_end_cb()
109 .net_idx = pub.net_idx, in heartbeat_send()
111 .addr = pub.dst, in heartbeat_send()
112 .send_ttl = pub.ttl, in heartbeat_send()
115 .sub = bt_mesh_subnet_get(pub.net_idx), in heartbeat_send()
124 if (!tx.sub || pub.dst == BT_MESH_ADDR_UNASSIGNED) { in heartbeat_send()
128 hb.init_ttl = pub.ttl; in heartbeat_send()
148 LOG_DBG("InitTTL %u feat 0x%04x", pub.ttl, feat); in heartbeat_send()
170 LOG_DBG("hb_pub.count: %u", pub.count); in hb_publish()
173 if (pub.period == 0U || pub.count == 0U) { in hb_publish()
177 subnet = bt_mesh_subnet_get(pub.net_idx); in hb_publish()
179 LOG_ERR("No matching subnet for idx 0x%02x", pub.net_idx); in hb_publish()
180 pub.dst = BT_MESH_ADDR_UNASSIGNED; in hb_publish()
234 pub.dst = BT_MESH_ADDR_UNASSIGNED; in pub_disable()
235 pub.count = 0U; in pub_disable()
236 pub.period = 0U; in pub_disable()
237 pub.ttl = 0U; in pub_disable()
238 pub.feat = 0U; in pub_disable()
239 pub.net_idx = 0U; in pub_disable()
268 pub = *new_pub; in bt_mesh_hb_pub_set()
293 *get = pub; in bt_mesh_hb_pub_get()
370 if (pub.dst == BT_MESH_ADDR_UNASSIGNED) { in bt_mesh_hb_feature_changed()
374 if (!(pub.feat & features)) { in bt_mesh_hb_feature_changed()
383 pub.net_idx = BT_MESH_KEY_UNUSED; in bt_mesh_hb_init()
390 if (pub.count && pub.period) { in bt_mesh_hb_start()
406 if (pub.period && pub.count) { in bt_mesh_hb_resume()
444 BT_MESH_SETTINGS_DEFINE(pub, "HBPub", hb_pub_set);