nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
le_pair_resp.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
14#ifndef BT_MESH_LE_PAIR_RESP_H__
15#define BT_MESH_LE_PAIR_RESP_H__
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21#include <zephyr/bluetooth/mesh/access.h>
22
23#define BT_MESH_VENDOR_COMPANY_ID_LE_PAIR_RESP 0x0059
24#define BT_MESH_MODEL_ID_LE_PAIR_RESP 0x000E
25
30#define BT_MESH_MODEL_LE_PAIR_RESP \
31 BT_MESH_MODEL_VND_CB(BT_MESH_VENDOR_COMPANY_ID_LE_PAIR_RESP, BT_MESH_MODEL_ID_LE_PAIR_RESP,\
32 _bt_mesh_le_pair_resp_op, NULL, NULL, \
33 &_bt_mesh_le_pair_resp_cb)
34
40
49void bt_mesh_le_pair_resp_passkey_set(uint32_t passkey);
50
63
66extern const struct bt_mesh_model_op _bt_mesh_le_pair_resp_op[];
67extern const struct bt_mesh_model_cb _bt_mesh_le_pair_resp_cb;
68
71#ifdef __cplusplus
72}
73#endif
74
75#endif /* BT_MESH_LE_PAIR_RESP_H__ */
76
void bt_mesh_le_pair_resp_passkey_invalidate(void)
Invalidate previously used passkey.
void bt_mesh_le_pair_resp_passkey_set(uint32_t passkey)
Set own passkey instead of using randomly generating passkeys.
uint32_t bt_mesh_le_pair_resp_passkey_get(void)
Get passkey to be used in the very next pairing.