nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
gen_onoff.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2019 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
14#ifndef BT_MESH_GEN_ONOFF_H__
15#define BT_MESH_GEN_ONOFF_H__
16
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
38
48
50#define BT_MESH_ONOFF_OP_GET BT_MESH_MODEL_OP_2(0x82, 0x01)
51#define BT_MESH_ONOFF_OP_SET BT_MESH_MODEL_OP_2(0x82, 0x02)
52#define BT_MESH_ONOFF_OP_SET_UNACK BT_MESH_MODEL_OP_2(0x82, 0x03)
53#define BT_MESH_ONOFF_OP_STATUS BT_MESH_MODEL_OP_2(0x82, 0x04)
54
55#define BT_MESH_ONOFF_MSG_LEN_GET 0
56#define BT_MESH_ONOFF_MSG_MINLEN_SET 2
57#define BT_MESH_ONOFF_MSG_MAXLEN_SET 4
58#define BT_MESH_ONOFF_MSG_MINLEN_STATUS 1
59#define BT_MESH_ONOFF_MSG_MAXLEN_STATUS 3
62#ifdef __cplusplus
63}
64#endif
65
66#endif /* BT_MESH_GEN_ONOFF_H__ */
67
Definition model_types.h:37
bool on_off
Definition gen_onoff.h:26
const struct bt_mesh_model_transition * transition
Definition gen_onoff.h:36
bool reuse_transaction
Definition gen_onoff.h:28
Definition gen_onoff.h:24
int32_t remaining_time
Definition gen_onoff.h:46
bool target_on_off
Definition gen_onoff.h:44
bool present_on_off
Definition gen_onoff.h:42
Definition gen_onoff.h:40