在ch573mesh例程里面只找到了heartbeat-publication的API
int bt_mesh_cfg_hb_pub_set( uint16_t net_idx, uint16_t addr,
? ? const struct bt_mesh_cfg_hb_pub *param );
int bt_mesh_cfg_hb_pub_get( uint16_t net_idx, uint16_t addr );
以及該API對(duì)應(yīng)的結(jié)構(gòu)體
struct bt_mesh_cfg_hb_pub
{
? ? uint16_t dst;
? ? uint8_t count;
? ? uint8_t period;
? ? uint8_t ttl;
? ? uint16_t feat;
? ? uint16_t net_idx;
};
與此同時(shí)還發(fā)現(xiàn)了heartbeat-subscribe對(duì)應(yīng)的結(jié)構(gòu)體
struct bt_mesh_cfg_hb_sub
{
? ? uint16_t src;
? ? uint16_t dst;
? ? uint8_t period;
? ? uint8_t count;
? ? uint8_t min;
? ? uint8_t max;
};
但是沒(méi)有發(fā)現(xiàn)其對(duì)應(yīng)的API,請(qǐng)問(wèn)有沒(méi)有對(duì)應(yīng)的API