MeshX 0.3
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
unit_test.h
Go to the documentation of this file.
1
12#ifndef __MESHX_UNIT_TEST_H__
13#define __MESHX_UNIT_TEST_H__
14
15#include <stdio.h>
16#include <stdlib.h>
17#include <string.h>
19#include "argtable3/argtable3.h"
20#include "module_id.h"
21#include "meshx_err.h"
22
23#if CONFIG_ENABLE_UNIT_TEST
27#define UT_GET_ARG(_x, _type, _argv) (_type) atoi( _argv [_x] )
28
44typedef meshx_err_t (*module_callback_t)(int cmd_id, int argc, char **argv);
45
52
64
75
90
91#endif /* CONFIG_ENABLE_UNIT_TEST */
92#endif /* __MESHX_UNIT_TEST_H__ */
Internal configuration settings for MeshX.
MeshX Error Codes.
meshx_err_t
MeshX Error Codes.
Definition meshx_err.h:39
Defines module IDs for different elements in the BLE mesh node application.
module_id_t
Enumeration of module IDs.
Definition module_id.h:23
Structure to hold the unit test callback function.
Definition unit_test.h:49
module_callback_t callback
Definition unit_test.h:50
meshx_err_t register_ut_command()
Registers the unit test (ut) command with the ESP console.
Definition unit_test.c:81
meshx_err_t(* module_callback_t)(int cmd_id, int argc, char **argv)
Callback function for unit test modules.
Definition unit_test.h:44
meshx_err_t register_unit_test(module_id_t module_id, module_callback_t callback)
Register a unit test for a specific module.
Definition unit_test.c:149
struct callback_node unit_test_callback_t
Structure to hold the unit test callback function.
meshx_err_t init_unit_test_console(void)
Initialize the production console.
Definition unit_test.c:100