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
meshx_base_model_common.hpp File Reference

Header file for MeshX Config Server base class implementation. More...

Go to the source code of this file.

Data Structures

class  meshXBaseConfigServerModel
 Template specialization of meshXBaseServerModel for Config BLE mesh server models. More...

Macros

#define MESHX_BASE_CONFIG_SERVER_TEMPLATE_PROTO
#define MESHX_BASE_CONFIG_SERVER_TEMPLATE_PARAMS

Typedefs

using meshx_config_server_send_params_t
using meshx_config_server_restore_params_t

Detailed Description

Header file for MeshX Config Server base class implementation.

This header file contains the declarations for Config Server BLE mesh model classes that extend the template-based meshXBaseServerModel. It defines the specific implementation for Config Server models including message contexts, callback structures, and the main Config Server model class.

Key Components:

  • Config Server message context structures for TXCM integration
  • Config Server parameter structures for state management
  • meshXBaseConfigServerModel class with Config-specific functionality
  • Platform-specific message sending and state restoration interfaces
  • Opcode validation for Config Server model operations

Template Specialization: This file provides concrete implementations of the template-based base classes specifically tailored for Config BLE mesh server models, ensuring type safety and optimal performance for configuration management operations.

Author
Pranjal Chanda
Date
2024-2025

Macro Definition Documentation

◆ MESHX_BASE_CONFIG_SERVER_TEMPLATE_PARAMS

#define MESHX_BASE_CONFIG_SERVER_TEMPLATE_PARAMS

◆ MESHX_BASE_CONFIG_SERVER_TEMPLATE_PROTO

#define MESHX_BASE_CONFIG_SERVER_TEMPLATE_PROTO

Typedef Documentation

◆ meshx_config_server_restore_params_t

Initial value:
{
meshx_model_t *p_model;
uint8_t *p_data;
size_t data_len;
}
struct meshx_model meshx_model_t
Structure containing the parameters for config server model state restoration.
62{
63 meshx_model_t *p_model; /**< Pointer to the server model. */
64 uint8_t *p_data; /**< Pointer to the state data. */
65 size_t data_len; /**< Length of the state data. */
66};

◆ meshx_config_server_send_params_t

Initial value:
{
meshx_model_t *p_model;
meshx_ctx_t *p_ctx;
uint8_t *p_data;
size_t data_len;
}
struct meshx_ctx meshx_ctx_t
Structure to hold context information for BLE Mesh operations.
Structure containing the parameters for config server model message sending.
47{
48 meshx_model_t *p_model; /**< Pointer to the server model. */
49 meshx_ctx_t *p_ctx; /**< Pointer to the context. */
50 uint8_t *p_data; /**< Pointer to the message data. */
51 size_t data_len; /**< Length of the data. */
52};