prov_buf_init(&buf, PROV_FAILED);
net_buf_simple_add_u8(&buf, err);
- prov_send(&buf);
+
+ if (prov_send(&buf)) {
+ BT_ERR("Failed to send Provisioning Failed message");
+ }
bt_mesh_atomic_set_bit(link.flags, LINK_INVALID);
}
if (prov_send(&buf)) {
BT_ERR("%s, Failed to send capabilities", __func__);
- prov_send_fail_msg(PROV_ERR_RESOURCES);
return;
}
if (prov_send(&cfm)) {
BT_ERR("%s, Unable to send Provisioning Confirm", __func__);
- prov_send_fail_msg(PROV_ERR_RESOURCES);
return;
}
PROV_BUF(buf, 1);
prov_buf_init(&buf, PROV_INPUT_COMPLETE);
- prov_send(&buf);
+ if (prov_send(&buf)) {
+ BT_ERR("Failed to send Provisioning Input Complete");
+ }
}
int bt_mesh_input_number(u32_t num)
if (prov_send(&rnd)) {
BT_ERR("%s, Failed to send Provisioning Random", __func__);
- prov_send_fail_msg(PROV_ERR_RESOURCES);
return;
}
net_idx, iv_index, addr);
prov_buf_init(&msg, PROV_COMPLETE);
- prov_send(&msg);
+ if (prov_send(&msg)) {
+ BT_ERR("Failed to send Provisioning Complete");
+ return;
+ }
/* Ignore any further PDUs on this link */
link.expect = 0U;