mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-10-18 11:25:07 +00:00
Mesh gets contacts, channels, delivery receipts, QR sharing and an ESP-NOW radio. Mesh Chat is split into Mesh Contacts and Mesh Channels, `mesh inspect` replaces the Mesh Inspect app, and ESP-NOW and Wi-Fi now share the Wi-Fi radio safely.
22 lines
644 B
C
22 lines
644 B
C
// SPDX-License-Identifier: Apache-2.0
|
|
#pragma once
|
|
|
|
#include <mesh/mesh.h>
|
|
|
|
#define MESH_SERVICE_ID "tactility.mesh"
|
|
|
|
struct MeshSettings {
|
|
bool enabled;
|
|
char backend[MESH_BACKEND_ID_MAX_LENGTH + 1];
|
|
/** Empty for the backend's default preset */
|
|
char preset[MESH_NAME_MAX_LENGTH + 1];
|
|
char node_name[MESH_NAME_MAX_LENGTH + 1];
|
|
/** The name of the radio device, empty for the default radio */
|
|
char radio[MESH_NAME_MAX_LENGTH + 1];
|
|
};
|
|
|
|
/** Loads the settings, or defaults when there are none */
|
|
void mesh_settings_load(struct MeshSettings* settings);
|
|
|
|
error_t mesh_settings_save(const struct MeshSettings* settings);
|