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_root_element.cpp File Reference

Macros

#define MESHX_ROOT_DEPENDENCY_RESOLVER_INST(ModelT)
 Explicit template instantiations for dependent models.

Functions

meshx_err_t meshx_init_config_server (void)

Variables

constexpr uint16_t MESHX_ROOT_ELEMENT_INDEX = 0

Macro Definition Documentation

◆ MESHX_ROOT_DEPENDENCY_RESOLVER_INST

#define MESHX_ROOT_DEPENDENCY_RESOLVER_INST ( ModelT)
Value:
template void meshXRootElement::add_sig_model_if_present<ModelT>(uint16_t, const char*)
void add_sig_model_if_present(uint16_t trigger_model_id, const char *log_name)
Definition meshx_root_element.cpp:78

Explicit template instantiations for dependent models.

88#define MESHX_ROOT_DEPENDENCY_RESOLVER_INST(ModelT) \
89 template void meshXRootElement::add_sig_model_if_present<ModelT>(uint16_t, const char*)

Function Documentation

◆ meshx_init_config_server()

meshx_err_t meshx_init_config_server ( void )

Legacy support for Config Server initialization and callback registration. These are provided to support the transition away from elements_c.

285{
286#if CONFIG_ENABLE_CONFIG_SERVER
287 /* In the new architecture, the config server is initialized as part of the root element models.
288 * We just need to ensure the platform layer is initialized.
289 */
291#else
292 return MESHX_NOT_SUPPORTED;
293#endif
294}
meshx_err_t meshx_plat_config_srv_init(void)
Initializes the MeshX platform configuration server.
@ MESHX_NOT_SUPPORTED
Definition meshx_err.h:51

Variable Documentation

◆ MESHX_ROOT_ELEMENT_INDEX

uint16_t MESHX_ROOT_ELEMENT_INDEX = 0
constexpr