torlando-tech
166bb16300
fix: address 8 critical issues from PR review with TDD
...
Critical fixes:
- Fix memory leak: RSSI polling now stopped in onCleared()
- Fix silent BLE scan errors: user-friendly error messages added
- Fix double-check locking bug in Python RNode initialization
- Fix interface registration order: start() before Transport register
- Fix race condition: use threading.Event for read loop control
- Fix write retry: implement exponential backoff (0.3s, 1s, 3s)
- Fix BLE write latch race: null check prevents stale callbacks
- Fix MTU request hang: 2-second timeout falls back to discoverServices
Tests added:
- RSSI polling cancellation test
- BLE scan error handling test
- Thread safety tests for read loop
- Write retry exponential backoff tests
Also includes ktlint format auto-fixes.
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2025-12-09 13:07:10 -05:00
torlando-tech
c0e9621638
feat: add input validation for SF, CR, and bandwidth fields
...
Add real-time validation in updateSpreadingFactor, updateCodingRate,
and updateBandwidth functions to show errors as the user types:
- Spreading Factor: 7-12
- Coding Rate: 5-8
- Bandwidth: 7.8 kHz - 1625 kHz
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-12-08 21:58:48 -05:00