|
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.
|
Singleton wrapper for the raw C dev_struct_t. More...
#include <meshx_device.hpp>
Public Member Functions | |
| void | init (dev_struct_t *pdev) |
| Initialize the device wrapper with a raw C struct. | |
| dev_struct_t * | get_raw_struct () |
| Get the underlying C structure. | |
| bool | is_initialized () const |
| Check if initialized. | |
| void | visualize_status () |
| Visualize the current composition and element status. | |
Static Public Member Functions | |
| static meshXDevice & | get_instance () |
| Get the singleton instance. | |
Private Member Functions | |
| meshXDevice () | |
| ~meshXDevice ()=default | |
Private Attributes | |
| dev_struct_t * | pdev |
Singleton wrapper for the raw C dev_struct_t.
This class provides a bridge between the C-centric device structure and the rich C++ element/model system.
|
inlineprivate |
|
privatedefault |
|
static |
Get the singleton instance.
|
inline |
Get the underlying C structure.
|
inline |
Initialize the device wrapper with a raw C struct.
| pdev | Pointer to the dev_struct_t |
|
inline |
Check if initialized.
| void meshXDevice::visualize_status | ( | ) |
Visualize the current composition and element status.
|
private |