Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(device)!: rollback and improve send/recv socket exception (#304)
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