Skip to content

Commit

Permalink
fix(device)!: rollback and improve send/recv socket exception (#304)
Browse files Browse the repository at this point in the history
changes detail:
1. rollback some socket related process
2. process all the socket exception in connect and main loop, all the
exception MUST raise to main.
3. improve refresh_status, support init protocol probe and refresh
4. improve connect, support init connect(protocl probe) and  reconnect
5. add reconnect and ignore check_protocol during refresh_status
6. reconnect failed(device power off) , return to connect loop until
device online
7. add more comments in source code for the changes

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Enhanced connection setup with options for initial configuration and
reconnection.
- Improved error handling for connection issues and device capabilities
retrieval.

- **Bug Fixes**
- Refined exception handling for various error types to provide clearer
logging.

- **Refactor**
- Restructured methods for better error management and connection
recovery.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
wuwentao authored Sep 29, 2024
1 parent d23e5a9 commit 7083464
Showing 1 changed file with 183 additions and 198 deletions.
Loading

0 comments on commit 7083464

Please sign in to comment.