Enhance BLE connection handling and improve USB connection messaging

- Wrapped BLE scan and connection methods in try-catch blocks to handle errors gracefully and provide debug output.
- Added retry logic for service discovery on web platforms after transient disconnections.
- Updated USB connection messages in multiple languages to reflect active support on Android and desktop platforms.
- Improved loading indicators for contacts screen to show a spinner during data loading.
This commit is contained in:
just_stuff_tm
2026-03-02 02:34:46 -05:00
committed by just-stuff-tm
parent ee3af52c0f
commit 2d1160d992
31 changed files with 240 additions and 140 deletions
+5 -6
View File
@@ -122,23 +122,22 @@ class AppLocalizationsEs extends AppLocalizations {
String get connectionChoiceBluetoothLabel => 'Bluetooth';
@override
String get usbScreenTitle =>
'La conexión USB estará disponible próximamente.';
String get usbScreenTitle => 'Conecte mediante USB';
@override
String get usbScreenSubtitle =>
'Estamos creando una conexión en serie para dispositivos Android y de escritorio.';
'Seleccione un dispositivo de serie detectado y conéctelo directamente a su nodo MeshCore.';
@override
String get usbScreenStatus => 'Próximamente';
String get usbScreenStatus => 'Seleccione un dispositivo USB';
@override
String get usbScreenNote =>
'Una vez que se implemente el soporte para USB, seleccionará un puerto serie y se conectará directamente a su dispositivo MeshCore.';
'La comunicación serial a través de USB está activa en dispositivos Android compatibles y en plataformas de escritorio.';
@override
String get usbScreenEmptyState =>
'No se detectaron dispositivos USB. Conecte uno y vuelva a intentar.';
'No se encontraron dispositivos USB. Conecte uno y vuelva a cargar.';
@override
String get scanner_scanning => 'Escaneando dispositivos...';