|
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.
|
Platform abstraction layer for MeshX. More...
#include "meshx_err.h"#include "meshx_platform_ble_mesh.h"#include "interface/ble_mesh/meshx_ble_mesh_cmn_def.h"Go to the source code of this file.
Functions | |
| meshx_err_t | meshx_platform_init (void) |
| Initializes the MeshX platform. | |
| void | meshx_platform_reset (void) |
| Resets the MeshX platform. This function performs a system reset, restarting the platform. | |
| void | meshx_platform_serial_write (const uint8_t *data, uint16_t len) |
| Writes data to the serial interface. | |
| meshx_err_t | meshx_platform_serial_init (void) |
| Initializes the serial interface for communication. | |
| int32_t | meshx_platform_serial_read (uint8_t *data, uint16_t len) |
| Reads data from the serial interface. | |
| void | meshx_platform_console_write (const char *data, uint16_t len) |
| Writes data to the console interface. | |
| int32_t | meshx_platform_console_read (uint8_t *data, uint16_t len) |
| Reads data from the console interface. | |
| meshx_err_t | meshx_platform_console_init (void) |
| Initializes the console interface. | |
Platform abstraction layer for MeshX.
This header provides initialization functions for the MeshX platform and its Bluetooth subsystem.
| meshx_err_t meshx_platform_console_init | ( | void | ) |
Initializes the console interface.
| int32_t meshx_platform_console_read | ( | uint8_t * | data, |
| uint16_t | len ) |
Reads data from the console interface.
| [out] | data | Pointer to the data buffer. |
| [in] | len | Length of the data to read. |
| void meshx_platform_console_write | ( | const char * | data, |
| uint16_t | len ) |
Writes data to the console interface.
| [in] | data | Pointer to the data buffer. |
| [in] | len | Length of the data to write. |
| meshx_err_t meshx_platform_init | ( | void | ) |
Initializes the MeshX platform.
This function sets up the necessary hardware and software components required for the MeshX platform to function correctly.
Initializes the MeshX platform.
This function sets up the necessary components and configurations required for the MeshX platform to operate on the ESP32. It ensures that the platform is ready for use by other components of the MeshX system.
| void meshx_platform_reset | ( | void | ) |
Resets the MeshX platform. This function performs a system reset, restarting the platform.
| meshx_err_t meshx_platform_serial_init | ( | void | ) |
Initializes the serial interface for communication.
Initializes the serial interface for communication.
This function initializes the serial interface for the MeshX platform. It configures the UART port, sets the baud rate, and enables the UART.
| int32_t meshx_platform_serial_read | ( | uint8_t * | data, |
| uint16_t | len ) |
Reads data from the serial interface.
| [out] | data | Pointer to the data buffer. |
| [in] | len | Length of the data to read. |
| void meshx_platform_serial_write | ( | const uint8_t * | data, |
| uint16_t | len ) |
Writes data to the serial interface.
| [in] | data | Pointer to the data buffer. |
| [in] | len | Length of the data to write. |