NimBLE-Arduino 2.1.2
Loading...
Searching...
No Matches
app_keys.h
1/*
2 * Copyright (c) 2020 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef _BT_MESH_APP_KEYS_H_
8#define _BT_MESH_APP_KEYS_H_
9
10#include "../include/mesh/mesh.h"
11#include "subnet.h"
12
14void bt_mesh_app_keys_reset(void);
15
25int bt_mesh_app_key_set(uint16_t app_idx, uint16_t net_idx,
26 const uint8_t old_key[16], const uint8_t new_key[16]);
27
42int bt_mesh_keys_resolve(struct bt_mesh_msg_ctx *ctx,
43 struct bt_mesh_subnet **sub,
44 const uint8_t **app_key, uint8_t *aid);
45
56uint16_t bt_mesh_app_key_find(bool dev_key, uint8_t aid,
57 struct bt_mesh_net_rx *rx,
58 int (*cb)(struct bt_mesh_net_rx *rx,
59 const uint8_t key[16], void *cb_data),
60 void *cb_data);
61
62extern void (*bt_mesh_app_key_cb_list[1]) (uint16_t app_idx, uint16_t net_idx,
63 enum bt_mesh_key_evt evt);
64
66void bt_mesh_app_key_pending_store(void);
67void bt_mesh_app_key_init(void);
68#endif /* _BT_MESH_APP_KEYS_H_ */
Definition msg.h:80
Definition subnet.h:35