Commit Graph

7 Commits

Author SHA1 Message Date
Paul Plant 603db60ff5 Libre 2 NFC re-write
- rewrite of NFC scan workflow
- initial scan of NFC-enabled sensors will now *not* initial BLE scanning
- NFC scan logic redone to perform several loops until a successful NFC scan with valid data is hopefully performed
- UI updated to inform user of scan attempts and give much clearer alert messages.
- haptic feedback (vibrations/noise) added to guide user during scan cycles
- a failed NFC scan will now inform the user and offer to immediately scan again. If the user declines the transmitter will be disconnected (if existing) or removed (if adding new)
- BLE Peripheral view should show correct status in connection row if pending NFC scan to continue
- once a valid NFC scan has been performed, the user will be informed and the superclass will be told to start BLE scanning to find the sensor/transmitter. This will avoid trying to connect before a valid NFC is performed
- the scanned sensor serial number is passed back through the delegate to update the expected device name at the same time as BLE scanning is started. This prevents the app from connecting to a different transmitter (i.e. Libre 2).
- when a Libre 2 sensor is disconnected, the active sensor is set to nil. This prevents the countdown from staying on screen with no valid sensor connected.
- as above but the libre1DerivedParameters are also set to nil to prevent an issue that can show very high readings when initially connecting to a new sensor
- related alert messages changed to improve clarity
- translations added for EN/NL/ES/FR/DE/PT/SV
2023-01-04 13:24:06 +01:00
Paul Plant 098680ab74 Pass ConstantsHome.applicationName to text strings and localization files 2021-03-24 14:49:32 +01:00
Johan Degraeve c7d3e01396 version 4.5.23 - build 4146 - further replacement xDrip4iOS by xDrip4iO5 in all text strings + version increase 2021-03-12 11:08:27 +01:00
Johan Degraeve 931a366968 Libre 2 NFC string : better explanation what to do when app connects to previous sensor. User should either 'disconnect' or 'stop scanning' 2021-02-11 22:02:15 +01:00
Johan Degraeve 6ccb0c2634 Libre 2 : replaced error message 'error while reading multiple blocks...' by message saying user should retry 2021-02-05 22:12:59 +01:00
Johan Degraeve e207c5a451 Libre 2 : compare bluetooth device name with sensor id received via NFC scan, if these two don't match then it means the user has connected to another (older?) Libre 2 with bluetooth than the one for which NFC scan was done, in that case, inform user 2021-02-04 22:15:10 +01:00
Paul Plant 9d0c2a1932 Libre2 NFC Scan Texts eng + esp 2021-01-16 20:11:23 +01:00