creepymonster / GlucoseDirect

App programmed in Swift/SwiftUI for using Libre blood glucose sensors.
MIT License
355 stars 113 forks source link

Libre 2: unsupported sensor: unknown #549

Closed enodr closed 1 year ago

enodr commented 1 year ago

Hi,

Using Libre 2 EU sensors. Never had problem before but the last batch of sensors I got are not recognized by the app.

The error message does not give much insight.

How can I help debug? Also curious not seing more reports about this issue. Something changed in the latest sensors ?

patriceo commented 1 year ago

Hi @enodr same problem for me. I have been using Libre 2 EU sensors for months without any issues, the latest one gives me the same unsupported sensor issue.

How can we help?

I found the following logs: `

❌ 2023-06-16T20:09:57Z [GlucoseDirectApp/LibreNFC.swift:221] [returnWithError(_:)] Unsupported sensor: Inconnu

❌ 2023-06-16T20:09:57Z [GlucoseDirectApp/LibreConnection.swift:53] [pairConnection()] Unsupported sensor: Inconnu

ℹ️ 2023-06-16T20:09:57Z [GlucoseDirectApp/SensorConnection.swift:40] [sendUpdate(connectionState:)] ConnectionState: Disconnected

❌ 2023-06-16T20:09:57Z [GlucoseDirectApp/SensorConnection.swift:98] [sendUpdate(errorMessage:)] ErrorMessage: Unsupported sensor: Inconnu

ℹ️ 2023-06-16T20:09:57Z [GlucoseDirectApp/Log.swift:53] [logMiddleware(service:)] Triggered action: setConnectionState(connectionState: GlucoseDirectApp.SensorConnectionState.disconnected)

ℹ️ 2023-06-16T20:09:57Z [GlucoseDirectApp/ConnectionNotification.swift:101] [scheduleSensorConnectionLostAlarm(sound:)] Schedule sensor connection lost alarm

ℹ️ 2023-06-16T20:09:57Z [GlucoseDirectApp/ConnectionNotification.swift:104] [scheduleSensorConnectionLostAlarm(sound:)] Schedule sensor connection lost alarm, state: sound

ℹ️ 2023-06-16T20:09:57Z [GlucoseDirectApp/Log.swift:53] [logMiddleware(service:)] Triggered action: setConnectionError(errorMessage: "Unsupported sensor: Inconnu", errorTimestamp: 2023-06-16 20:09:57 +0000) `

askorza commented 1 year ago

i have same issue

enodr commented 1 year ago

I can confirm the fix works perfectly with the new sensors. Marking as closed for me.

patriceo commented 1 year ago

I have also tested with my sensor and it's not working. Thanks for the fix !