Repository navigation
api doxygen files
github-actions[bot] edited this page Sep 7, 2026
·
1 revision
Complete file documentation automatically generated from painlessMesh source code using Doxygen.
📁 API Reference - Files
🔗 Open in New Tab
<iframe
src="https://alteriom.github.io/painlessMesh/api-reference/files.html"
width="100%"
height="700px"
frameborder="0"
style="border: 1px solid #d0d7de; border-radius: 6px; background: white;"
loading="lazy"
title="Doxygen File Documentation">
📄 Your browser doesn't support iframes. Open file documentation in new tab
</iframe>| File Category | Description | Direct Link |
|---|---|---|
| All Files | Complete file listing | 📖 Browse All |
| Header Files | Public API headers | 📋 View Headers |
| Source Files | Implementation files | 🔧 Browse Source |
| File Index | Alphabetical file listing | 📁 File Index |
Main Headers
-
painlessMesh.h- Primary library interface -
AlteriomPainlessMesh.h- Alteriom extensions wrapper -
painlessMeshSTA.h- Station mode functionality
Core Implementation
-
mesh.hpp- Core mesh networking implementation -
protocol.hpp- Mesh communication protocols -
router.hpp- Message routing and forwarding
Package Framework
-
plugin.hpp- Plugin system architecture -
SinglePackageclasses - Point-to-point messaging -
BroadcastPackageclasses - Network-wide broadcasts
Supporting Infrastructure
-
logger.hpp- Debug and logging utilities -
buffer.hpp- Memory management -
configuration.hpp- Settings and options
IoT Packages
-
alteriom_sensor_package.hpp- Sensor data packages - Example files - Practical usage demonstrations
Each file entry includes:
- File overview with purpose and role
- Include dependencies and requirements
- Public API exposed by the file
- Class and function listings defined in the file
- Usage examples for key functionality
- Source code links for implementation details
Header Files (.h/.hpp)
- Public interfaces - Classes and functions for library users
- API declarations - Function signatures and class definitions
- Documentation - Detailed usage information and examples
Source Files (.cpp)
- Implementation details - How the library actually works
- Private functions - Internal helper functions
- Platform-specific code - ESP32/ESP8266 optimizations
// Main include for users
#include "AlteriomPainlessMesh.h"
// Core mesh functionality
#include "painlessMesh.h"
// Alteriom extensions
#include "examples/alteriom/alteriom_sensor_package.hpp"
// Internal headers (advanced users)
#include "painlessmesh/mesh.hpp"
#include "painlessmesh/protocol.hpp"Simple Mesh Project
#include "AlteriomPainlessMesh.h"
painlessMesh mesh;
Scheduler userScheduler;
void setup() {
mesh.init("MyMesh", "password", &userScheduler, 5555);
}Custom Extensions
#include "painlessmesh/plugin.hpp"
class CustomPackage : public painlessmesh::plugin::SinglePackage {
// Custom message implementation
};Direct Core Access
#include "painlessmesh/mesh.hpp"
#include "painlessmesh/protocol.hpp"
// Access lower-level mesh functionalityPlatform Optimization
#ifdef ESP32
#include "arduino/wifi.hpp"
#endif| Category | File Count | Purpose |
|---|---|---|
| Public Headers | ~5 files | User-facing API |
| Core Implementation | ~15 files | Mesh networking |
| Plugin System | ~8 files | Extensible messaging |
| Utilities | ~10 files | Support functions |
| Examples | ~12 files | Usage demonstrations |
For Basic Usage
- Include
AlteriomPainlessMesh.honly - Use high-level API functions
- Follow example patterns
For Advanced Development
- Include specific core headers as needed
- Understand file dependencies
- Review implementation details
After exploring the file documentation:
- Study examples - See file usage in Basic Examples
- Review classes - Understand context in Class Reference
- Check functions - Browse Function Reference
- Read guides - Learn patterns in Core API Guide
?> 💡 Tip: Use the file documentation to understand the library structure and find the right headers for your project. Each file page shows exactly what functionality it provides.