#kylekhus
1 messages · Page 1 of 1 (latest)
Awesome response time, thank you so much!
From what I can see in the ConnectionStatus class, there are only three statuses, CONNECTED, CONNECTING and NOT_CONNECTED. https://stripe.dev/stripe-terminal-android/external/external/com.stripe.stripeterminal.external.models/-connection-status/index.html
So there is no STANDBY status I'm afraid.
Ah that's what I was afraid of, thanks for checking
I was thinking maybe checking for when the reader emits the "NOT_CONNECTED" status would be sufficient but I also read that the reader can also enter standby mode while still connected to your device to conserve power
so that wouldnt cover all cases
May I know what problem you want to solve with STANDBY status?
Main intention is for monitoring purposes and maybe programmatically move the reader out of this state if necessary
The reader goes to standby mode to conserve battery life, and it automatically wakes up when payment is needed. So basically you don't need to manually update its status.
Hmm makes sense
and, just to recap, for monitoring purposes, for example monitoring "dead time" on a device, there isn't really a way to track when the reader enters and leaves standby mode (when it's still connected to the device)?
There is no such method or API to my best knowledge.
Gotcha, thank you for your help, Jack!