MeshX 0.4
This repository provides an implementation for Bluetooth Low Energy (BLE) Mesh network nodes. The project allows you to create BLE mesh nodes that can communicate with each other, enabling the development of smart home solutions or other IoT-based applications.
Loading...
Searching...
No Matches
ble_mesh/elements/inc/meshx_relay_msg_defs.h
Go to the documentation of this file.
1/**
2 * @file meshx_relay_msg_defs.h
3 * @brief Shared message definitions for Relay elements.
4 */
5
6#ifndef __MESHX_RELAY_MSG_DEFS_H__
7#define __MESHX_RELAY_MSG_DEFS_H__
8
9#include <stdint.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15/**
16 * @brief Standard Relay Client Message structure (shared between C element and C++ model)
17 * @details This structure must match the layout expected by the control task dispatch.
18 */
25
26#define MESHX_GEN_ON_OFF_CLI_MSG_SET 0
27#define MESHX_GEN_ON_OFF_CLI_MSG_GET 1
28#define MESHX_GEN_ON_OFF_CLI_MSG_ACK 1
29#define MESHX_GEN_ON_OFF_CLI_MSG_NO_ACK 0
30
31#ifdef __cplusplus
32}
33#endif
34
35#endif /* __MESHX_RELAY_MSG_DEFS_H__ */
struct meshx_gen_on_off_cli_msg meshx_gen_on_off_cli_msg_t
Standard Relay Client Message structure (shared between C element and C++ model).
Standard Relay Client Message structure (shared between C element and C++ model).
Definition ble_mesh/elements/inc/meshx_relay_msg_defs.h:19
uint8_t set_get
Definition ble_mesh/elements/inc/meshx_relay_msg_defs.h:21
uint16_t element_id
Definition ble_mesh/elements/inc/meshx_relay_msg_defs.h:23
uint8_t reserved
Definition ble_mesh/elements/inc/meshx_relay_msg_defs.h:22
uint8_t ack
Definition ble_mesh/elements/inc/meshx_relay_msg_defs.h:20