@alteriom/painlessmesh 1.8.1 → 1.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +91 -1
- package/README.md +174 -8
- package/RELEASE_GUIDE.md +57 -16
- package/docs/ARDUINO_LIBRARY_MANAGER_SUBMISSION.md +331 -0
- package/docs/architecture/mesh-architecture.md +20 -0
- package/docs/features/DIAGNOSTICS_API.md +534 -0
- package/docs/getting-started/arduino-manual-install.md +313 -0
- package/docs/implementation/BRIDGE_ARCHITECTURE_IMPLEMENTATION.md +340 -0
- package/docs/implementation/BRIDGE_HEALTH_MONITORING_IMPLEMENTATION.md +213 -0
- package/docs/implementation/BRIDGE_STATUS_FEATURE.md +635 -0
- package/docs/implementation/DIAGNOSTICS_API_IMPLEMENTATION.md +232 -0
- package/docs/implementation/IMPLEMENTATION_COMPLETE.md +228 -0
- package/docs/implementation/IMPLEMENTATION_NTP_TIME_SYNC.md +325 -0
- package/docs/implementation/IMPLEMENTATION_SUMMARY.md +316 -0
- package/docs/implementation/MESSAGE_QUEUE_IMPLEMENTATION.md +405 -0
- package/docs/implementation/MULTI_BRIDGE_IMPLEMENTATION.md +520 -0
- package/docs/implementation/NTP_TIME_SYNC_FEATURE.md +392 -0
- package/docs/internal/CUSTOM_AGENT_ANALYSIS.md +391 -0
- package/docs/internal/ISSUE_65_VERIFICATION.md +947 -0
- package/docs/internal/ISSUE_66_CLOSURE.md +249 -0
- package/docs/internal/ISSUE_66_STATUS.md +316 -0
- package/docs/internal/PR_SUMMARY.md +315 -0
- package/docs/internal/REVIEW_SUMMARY.md +332 -0
- package/docs/multi-bridge-setup.md +1025 -0
- package/docs/releases/PUBLISH_v1.8.0_INSTRUCTIONS.md +163 -0
- package/docs/releases/QUICK_START_RELEASES.md +113 -0
- package/docs/releases/RELEASE_CHECKLIST_v1.8.0.md +331 -0
- package/docs/releases/RELEASE_CHECKLIST_v1.8.2.md +309 -0
- package/docs/releases/RELEASE_NOTES_v1.8.0.md +685 -0
- package/docs/releases/RELEASE_NOTES_v1.8.1.md +221 -0
- package/docs/releases/RELEASE_NOTES_v1.8.2.md +421 -0
- package/docs/releases/RELEASE_NOTES_v1.8.3.md +292 -0
- package/docs/troubleshooting/ARDUINO_IDE_VERSION_FIX_SUMMARY.md +229 -0
- package/docs/troubleshooting/ARDUINO_LIBRARY_NAME_FIX.md +197 -0
- package/docs/troubleshooting/NPM_PUBLISHING_ISSUE_SUMMARY.md +110 -0
- package/docs/troubleshooting/station-reconnection-issues.md +172 -0
- package/examples/priority/README.md +274 -0
- package/examples/priority/priority_basic_example.ino +115 -0
- package/examples/priority/priority_with_queue.ino +249 -0
- package/examples/routing_demo/README.md +172 -0
- package/examples/routing_demo/routing_demo.ino +102 -0
- package/library.json +22 -3
- package/library.properties +3 -3
- package/package.json +1 -1
- package/src/arduino/wifi.hpp +49 -16
- package/src/painlessMesh.h +15 -0
- package/src/painlessMeshSTA.cpp +7 -1
- package/src/painlessmesh/buffer.hpp +218 -37
- package/src/painlessmesh/connection.hpp +21 -1
- package/src/painlessmesh/mesh.hpp +253 -19
- package/src/painlessmesh/router.hpp +31 -0
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
# Arduino Library Manager Submission Guide
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
This document explains the Arduino Library Manager indexing issue and provides the solution to restore automatic version updates.
|
|
6
|
+
|
|
7
|
+
## Current Status
|
|
8
|
+
|
|
9
|
+
**Status**: ✅ **Already registered** in Arduino Library Manager
|
|
10
|
+
**Issue**: New releases (v1.7.0 - v1.8.2) not being indexed
|
|
11
|
+
**Last Indexed Version**: 1.6.1
|
|
12
|
+
**Repository**: https://github.com/Alteriom/painlessMesh
|
|
13
|
+
|
|
14
|
+
## Problem Statement
|
|
15
|
+
|
|
16
|
+
Users report that the Arduino IDE:
|
|
17
|
+
- Shows old version (1.6.1) instead of current version (1.8.2)
|
|
18
|
+
- Does not detect new releases (v1.7.0 through v1.8.2)
|
|
19
|
+
- Cannot update to newer versions via Library Manager
|
|
20
|
+
- Has issues when trying to add the library as a ZIP file
|
|
21
|
+
|
|
22
|
+
## Root Cause **[RESOLVED]**
|
|
23
|
+
|
|
24
|
+
The library name in `library.properties` was changed between v1.6.1 and v1.7.0:
|
|
25
|
+
|
|
26
|
+
- **v1.6.1**: `name=Alteriom PainlessMesh` (with space)
|
|
27
|
+
- **v1.7.0+**: `name=AlteriomPainlessMesh` (no space)
|
|
28
|
+
|
|
29
|
+
**Arduino Library Manager requires the library name to remain consistent.** When the name changed, the indexer treated it as a completely different library and stopped indexing new releases under the original name.
|
|
30
|
+
|
|
31
|
+
The library IS registered at: https://github.com/arduino/library-registry (entry: `https://github.com/Alteriom/painlessMesh`)
|
|
32
|
+
|
|
33
|
+
## Solution **[IMPLEMENTED]**
|
|
34
|
+
|
|
35
|
+
Revert the library name in `library.properties` back to the original format with a space:
|
|
36
|
+
|
|
37
|
+
```properties
|
|
38
|
+
name=Alteriom PainlessMesh
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
This will allow Arduino Library Manager to resume indexing new releases as updates to the existing library entry.
|
|
42
|
+
|
|
43
|
+
## Solution: Submit to Arduino Library Registry
|
|
44
|
+
|
|
45
|
+
### Prerequisites Check ✅
|
|
46
|
+
|
|
47
|
+
Before submission, verify that the library meets all Arduino Library Manager requirements.
|
|
48
|
+
|
|
49
|
+
**Automated Validation**:
|
|
50
|
+
|
|
51
|
+
Run the validation script to check all requirements:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
./scripts/validate-arduino-compliance.sh
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
This script verifies:
|
|
58
|
+
|
|
59
|
+
- ✅ **library.properties file**: Present and properly formatted
|
|
60
|
+
- ✅ **Version field**: Set to 1.8.2
|
|
61
|
+
- ✅ **src/ directory**: Contains all library source code
|
|
62
|
+
- ✅ **examples/ directory**: Contains working example sketches (29+ examples)
|
|
63
|
+
- ✅ **Valid license**: LGPL-3.0 (open source)
|
|
64
|
+
- ✅ **README.md**: Comprehensive documentation
|
|
65
|
+
- ✅ **Git tags**: Releases are properly tagged (v1.8.2, etc.)
|
|
66
|
+
- ✅ **GitHub repository**: Public and accessible
|
|
67
|
+
- ✅ **Library name**: Unique (AlteriomPainlessMesh)
|
|
68
|
+
- ✅ **Version consistency**: All package files have matching versions
|
|
69
|
+
- ✅ **Header files**: Present in src/ directory
|
|
70
|
+
- ✅ **keywords.txt**: Present (optional but recommended)
|
|
71
|
+
|
|
72
|
+
**Current Status**: ✅ All checks passing
|
|
73
|
+
|
|
74
|
+
### library.properties Validation
|
|
75
|
+
|
|
76
|
+
Current library.properties contents:
|
|
77
|
+
|
|
78
|
+
```properties
|
|
79
|
+
name=AlteriomPainlessMesh
|
|
80
|
+
version=1.8.2
|
|
81
|
+
author=Coopdis,Scotty Franzyshen,Edwin van Leeuwen,Germán Martín,Maximilian Schwarz,Doanh Doanh,Alteriom
|
|
82
|
+
maintainer=Alteriom
|
|
83
|
+
sentence=A painless way to setup a mesh with ESP8266 and ESP32 devices with Alteriom extensions
|
|
84
|
+
paragraph=painlessMesh is a user-friendly library for creating mesh networks with ESP8266 and ESP32 devices. This Alteriom fork includes additional packages for sensor data (SensorPackage), device commands (CommandPackage), and status monitoring (StatusPackage). It handles routing and network management automatically, so you can focus on your application. The library uses JSON-based messaging and syncs time across all nodes, making it ideal for coordinated behaviour like synchronized light displays or sensor networks reporting to a central node.
|
|
85
|
+
category=Communication
|
|
86
|
+
url=https://github.com/Alteriom/painlessMesh
|
|
87
|
+
architectures=esp8266,esp32
|
|
88
|
+
includes=painlessMesh.h
|
|
89
|
+
depends=ArduinoJson, TaskScheduler
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
**Status**: ✅ All required fields present and properly formatted
|
|
93
|
+
|
|
94
|
+
### Submission Process
|
|
95
|
+
|
|
96
|
+
#### Step 1: Prepare Submission Information
|
|
97
|
+
|
|
98
|
+
Gather the following information for the submission:
|
|
99
|
+
|
|
100
|
+
```
|
|
101
|
+
Repository URL: https://github.com/Alteriom/painlessMesh
|
|
102
|
+
Library Name: AlteriomPainlessMesh
|
|
103
|
+
Current Version: 1.8.2
|
|
104
|
+
Latest Release Tag: v1.8.2
|
|
105
|
+
Category: Communication
|
|
106
|
+
Architectures: ESP8266, ESP32
|
|
107
|
+
Dependencies: ArduinoJson, TaskScheduler
|
|
108
|
+
License: LGPL-3.0
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
#### Step 2: Create Submission Issue
|
|
112
|
+
|
|
113
|
+
1. Go to: https://github.com/arduino/library-registry
|
|
114
|
+
2. Click on "Issues" tab
|
|
115
|
+
3. Click "New Issue"
|
|
116
|
+
4. Use the template below:
|
|
117
|
+
|
|
118
|
+
```markdown
|
|
119
|
+
## Add AlteriomPainlessMesh to Arduino Library Manager
|
|
120
|
+
|
|
121
|
+
**Repository URL**: https://github.com/Alteriom/painlessMesh
|
|
122
|
+
|
|
123
|
+
**Library Name**: AlteriomPainlessMesh
|
|
124
|
+
|
|
125
|
+
**Current Version**: 1.8.2
|
|
126
|
+
|
|
127
|
+
**Release Tag**: v1.8.2
|
|
128
|
+
|
|
129
|
+
**Description**:
|
|
130
|
+
AlteriomPainlessMesh is a user-friendly library for creating mesh networks with ESP8266 and ESP32 devices. This is an enhanced fork of the original painlessMesh library with additional features:
|
|
131
|
+
|
|
132
|
+
- **SensorPackage** (Type 200): Environmental data collection with temperature, humidity, pressure monitoring
|
|
133
|
+
- **StatusPackage** (Type 202): Device health monitoring with memory, uptime, and WiFi metrics
|
|
134
|
+
- **CommandPackage** (Type 400): Remote device control and automation
|
|
135
|
+
- **MetricsPackage** (Type 204): Comprehensive performance metrics for dashboards
|
|
136
|
+
- **HealthCheckPackage** (Type 605): Proactive problem detection and predictive maintenance
|
|
137
|
+
- **Bridge Coordination** (Type 613): Multi-bridge support for high availability
|
|
138
|
+
- **Message Queue**: Offline message queuing for critical sensor data
|
|
139
|
+
|
|
140
|
+
The library handles mesh routing and network management automatically, uses JSON-based messaging, and syncs time across all nodes. Ideal for IoT sensor networks, smart agriculture, home automation, and industrial monitoring.
|
|
141
|
+
|
|
142
|
+
**Category**: Communication
|
|
143
|
+
|
|
144
|
+
**Architectures**: esp8266, esp32
|
|
145
|
+
|
|
146
|
+
**Dependencies**:
|
|
147
|
+
- ArduinoJson (^7.4.2)
|
|
148
|
+
- TaskScheduler (^4.0.0)
|
|
149
|
+
|
|
150
|
+
**License**: LGPL-3.0
|
|
151
|
+
|
|
152
|
+
**Documentation**: https://alteriom.github.io/painlessMesh/
|
|
153
|
+
|
|
154
|
+
**Maintainer**: Alteriom (https://github.com/Alteriom)
|
|
155
|
+
|
|
156
|
+
**Additional Information**:
|
|
157
|
+
- Comprehensive CI/CD with automated testing
|
|
158
|
+
- 19+ working examples included
|
|
159
|
+
- 710+ unit tests passing
|
|
160
|
+
- Active maintenance and regular releases
|
|
161
|
+
- PlatformIO Registry: https://registry.platformio.org/libraries/sparck75/AlteriomPainlessMesh
|
|
162
|
+
- NPM Package: https://www.npmjs.com/package/@alteriom/painlessmesh
|
|
163
|
+
|
|
164
|
+
This library is ready for Arduino Library Manager indexing. All requirements are met:
|
|
165
|
+
- ✅ Valid library.properties file
|
|
166
|
+
- ✅ Proper directory structure (src/, examples/)
|
|
167
|
+
- ✅ Semantic versioning with git tags
|
|
168
|
+
- ✅ Open source license
|
|
169
|
+
- ✅ Examples compile successfully
|
|
170
|
+
- ✅ Comprehensive documentation
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
#### Step 3: Wait for Review
|
|
174
|
+
|
|
175
|
+
The Arduino team will review the submission:
|
|
176
|
+
|
|
177
|
+
1. **Automated checks**: The Arduino bot will validate the repository structure
|
|
178
|
+
2. **Manual review**: Arduino team will verify library quality
|
|
179
|
+
3. **Approval**: If everything is correct, the library will be added to `repositories.txt`
|
|
180
|
+
4. **Indexing**: The Arduino Library Manager will start indexing new releases
|
|
181
|
+
|
|
182
|
+
**Expected Timeline**: 1-2 weeks (can be longer depending on queue)
|
|
183
|
+
|
|
184
|
+
#### Step 4: Verify Registration
|
|
185
|
+
|
|
186
|
+
Once approved, verify the library is accessible:
|
|
187
|
+
|
|
188
|
+
1. Open Arduino IDE
|
|
189
|
+
2. Go to: Sketch → Include Library → Manage Libraries
|
|
190
|
+
3. Search for "AlteriomPainlessMesh"
|
|
191
|
+
4. Verify version 1.8.2 (or latest) appears
|
|
192
|
+
5. Test installation
|
|
193
|
+
|
|
194
|
+
### Alternative: Direct Pull Request (Advanced)
|
|
195
|
+
|
|
196
|
+
If you prefer to submit via pull request:
|
|
197
|
+
|
|
198
|
+
1. Fork: https://github.com/arduino/library-registry
|
|
199
|
+
2. Edit `repositories.txt`
|
|
200
|
+
3. Add line: `https://github.com/Alteriom/painlessMesh`
|
|
201
|
+
4. Create pull request with description
|
|
202
|
+
5. Wait for review and merge
|
|
203
|
+
|
|
204
|
+
**Note**: The issue submission method is recommended for first-time submissions.
|
|
205
|
+
|
|
206
|
+
## Post-Registration
|
|
207
|
+
|
|
208
|
+
### Automatic Updates
|
|
209
|
+
|
|
210
|
+
Once registered, future releases will be automatically indexed:
|
|
211
|
+
|
|
212
|
+
1. Create new release on GitHub with semantic version tag (e.g., v1.8.3)
|
|
213
|
+
2. Update `library.properties`, `library.json`, `package.json` versions
|
|
214
|
+
3. Arduino Library Manager automatically detects new releases
|
|
215
|
+
4. Users can update via Library Manager
|
|
216
|
+
|
|
217
|
+
**Update Frequency**: Arduino Library Manager checks for updates every 24-48 hours
|
|
218
|
+
|
|
219
|
+
### Maintenance
|
|
220
|
+
|
|
221
|
+
To ensure continued compatibility:
|
|
222
|
+
|
|
223
|
+
- Keep `library.properties` version in sync with git tags
|
|
224
|
+
- Follow semantic versioning (MAJOR.MINOR.PATCH)
|
|
225
|
+
- Test examples before each release
|
|
226
|
+
- Update CHANGELOG.md with changes
|
|
227
|
+
- Maintain backward compatibility when possible
|
|
228
|
+
|
|
229
|
+
## Testing Library Manager Installation
|
|
230
|
+
|
|
231
|
+
Once registered, test the installation process:
|
|
232
|
+
|
|
233
|
+
### Test 1: Fresh Installation
|
|
234
|
+
|
|
235
|
+
```
|
|
236
|
+
1. Open Arduino IDE
|
|
237
|
+
2. Sketch → Include Library → Manage Libraries
|
|
238
|
+
3. Search: "AlteriomPainlessMesh"
|
|
239
|
+
4. Click "Install"
|
|
240
|
+
5. Verify installation completes
|
|
241
|
+
6. Check: Tools → Manage Libraries → Installed
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
### Test 2: Example Compilation
|
|
245
|
+
|
|
246
|
+
```
|
|
247
|
+
1. File → Examples → AlteriomPainlessMesh → basic
|
|
248
|
+
2. Select board: ESP32 Dev Module or ESP8266 board
|
|
249
|
+
3. Verify/Compile sketch
|
|
250
|
+
4. Confirm compilation succeeds
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
### Test 3: Update Detection
|
|
254
|
+
|
|
255
|
+
```
|
|
256
|
+
1. Release new version (e.g., v1.8.3)
|
|
257
|
+
2. Wait 24-48 hours for indexing
|
|
258
|
+
3. Open Library Manager
|
|
259
|
+
4. Search: "AlteriomPainlessMesh"
|
|
260
|
+
5. Verify "Update" button appears
|
|
261
|
+
6. Click Update and verify installation
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
## Troubleshooting
|
|
265
|
+
|
|
266
|
+
### Library Not Appearing in Manager
|
|
267
|
+
|
|
268
|
+
**Cause**: Not yet indexed or submission not approved
|
|
269
|
+
**Solution**:
|
|
270
|
+
- Check submission issue status
|
|
271
|
+
- Wait 24-48 hours after approval
|
|
272
|
+
- Verify `library.properties` has correct format
|
|
273
|
+
|
|
274
|
+
### Version Not Updating
|
|
275
|
+
|
|
276
|
+
**Cause**: Git tag doesn't match library.properties version
|
|
277
|
+
**Solution**:
|
|
278
|
+
- Ensure version in library.properties matches git tag
|
|
279
|
+
- Example: library.properties has `version=1.8.2` → git tag must be `v1.8.2`
|
|
280
|
+
- Push corrected tag to GitHub
|
|
281
|
+
|
|
282
|
+
### Compilation Errors in Library Manager
|
|
283
|
+
|
|
284
|
+
**Cause**: Missing dependencies or platform-specific issues
|
|
285
|
+
**Solution**:
|
|
286
|
+
- Verify `depends=` field in library.properties lists all dependencies
|
|
287
|
+
- Test compilation on target platforms before release
|
|
288
|
+
- Check Arduino forum for reported issues
|
|
289
|
+
|
|
290
|
+
### Old Version Showing (1.6.1 Issue)
|
|
291
|
+
|
|
292
|
+
**Cause**: Library not properly registered or name conflict
|
|
293
|
+
**Solution**:
|
|
294
|
+
- Complete Arduino Library Manager registration
|
|
295
|
+
- Verify library name is unique
|
|
296
|
+
- Check if old library version exists under different name
|
|
297
|
+
|
|
298
|
+
## Reference Links
|
|
299
|
+
|
|
300
|
+
- **Arduino Library Manager**: https://www.arduino.cc/reference/en/libraries/
|
|
301
|
+
- **Library Registry**: https://github.com/arduino/library-registry
|
|
302
|
+
- **Submission Guide**: https://support.arduino.cc/hc/en-us/articles/360012175419
|
|
303
|
+
- **Library Specification**: https://arduino.github.io/arduino-cli/latest/library-specification/
|
|
304
|
+
- **Library Manager FAQ**: https://support.arduino.cc/hc/en-us/articles/360016077340
|
|
305
|
+
|
|
306
|
+
## Support
|
|
307
|
+
|
|
308
|
+
If you encounter issues with the Arduino Library Manager submission:
|
|
309
|
+
|
|
310
|
+
1. **Check Documentation**: Review Arduino's official library submission guide
|
|
311
|
+
2. **Search Issues**: Look for similar submissions in arduino/library-registry issues
|
|
312
|
+
3. **Ask Arduino Forum**: Post questions in Arduino's library development forum
|
|
313
|
+
4. **Contact Maintainer**: Open issue in this repository for help
|
|
314
|
+
|
|
315
|
+
## Summary
|
|
316
|
+
|
|
317
|
+
**Action Required**: Submit the library to Arduino Library Manager registry
|
|
318
|
+
|
|
319
|
+
**Method**: Create issue at https://github.com/arduino/library-registry
|
|
320
|
+
|
|
321
|
+
**Expected Result**: Library becomes installable via Arduino IDE's Library Manager
|
|
322
|
+
|
|
323
|
+
**Timeline**: 1-2 weeks for review and approval
|
|
324
|
+
|
|
325
|
+
**Maintenance**: Future releases automatically indexed every 24-48 hours
|
|
326
|
+
|
|
327
|
+
Once registered, users will be able to:
|
|
328
|
+
- ✅ Search for "AlteriomPainlessMesh" in Arduino IDE
|
|
329
|
+
- ✅ Install with one click
|
|
330
|
+
- ✅ Update to latest versions automatically
|
|
331
|
+
- ✅ Access library documentation and examples
|
|
@@ -52,6 +52,26 @@ painlessMesh creates a self-organizing, self-healing wireless mesh network using
|
|
|
52
52
|
- Package type identification
|
|
53
53
|
- Connection lifecycle management
|
|
54
54
|
|
|
55
|
+
### Protocol Message Types
|
|
56
|
+
|
|
57
|
+
The protocol layer uses several internal message types for mesh management:
|
|
58
|
+
|
|
59
|
+
| Type | Name | Purpose |
|
|
60
|
+
|------|------|---------|
|
|
61
|
+
| 3 | TIME_DELAY | Measures network latency between nodes for routing optimization |
|
|
62
|
+
| 4 | TIME_SYNC | Synchronizes clocks across all mesh nodes |
|
|
63
|
+
| 5 | NODE_SYNC_REQUEST | Requests node list and topology information |
|
|
64
|
+
| 6 | NODE_SYNC_REPLY | Responds with node list and topology data |
|
|
65
|
+
| 7 | CONTROL | Deprecated control messages (no longer used) |
|
|
66
|
+
| 8 | BROADCAST | Routes application messages to all mesh nodes |
|
|
67
|
+
| 9 | SINGLE | Routes application messages to a specific node |
|
|
68
|
+
|
|
69
|
+
These protocol types are handled automatically by the mesh layer and enable:
|
|
70
|
+
- **Automatic time synchronization** across all nodes
|
|
71
|
+
- **Dynamic routing** based on measured network latency
|
|
72
|
+
- **Topology discovery** when nodes join or leave
|
|
73
|
+
- **Efficient message delivery** through the mesh network
|
|
74
|
+
|
|
55
75
|
**Network Layer**
|
|
56
76
|
- TCP connection handling
|
|
57
77
|
- Message queuing and transmission
|