#Ronit
1 messages · Page 1 of 1 (latest)
Hello! What are you trying to do? Are you just debugging why the reader is offline?
i want to know if reader is offline then i can throw error message that's why i want to know reader is offline and not turned on also not connected
Are you working with internet readers, or a bluetooth reader
gotcha - let me see what information I can find
Unfortunately if you're using bluetooth readers I don't think there's any way around this - if you were using internet readers then we'd return ALL readers (both online and offline), but for bluetooth we only return the ones that are on
this artical shows - Bluetooth scan
Bluetooth scan searches for all nearby readers and returns a list of discovered readers to your app. As the discovery process continues, the SDK continues to invoke the DiscoveryDelegate.didUpdateDiscoveredReaders method with the latest list of nearby readers.
With the Bluetooth scan discovery method, you can set a timeout to scan for a set period of time, which you can use for managing battery life or triggering an error message if no devices are found.
In your mobile application, we recommend displaying an auto-updating list of discovered readers, with serial numbers or labels to help users identify their reader.
so i was hopping for the get status from offline M2 reader
If the M2 reader is off then there's literally no way for us to discover it and get it's current status
you might be right because this DiscoveryDelegate.didUpdateDiscoveredReaders method not return anything and just running infinite
any suggestion for me to get response if reader is offline ?
There's really no workaround for this unfortunately - you'd have to implement something on your end to keep track of which readers may have previously been connected to that device and say that they're currently not in range or offline
Simplest thing to do probably would just be to have something in your UI that says "No discovered readers found - make sure any nearby bluetooth readers are on"
this the slution i want to apply but could not found anywhere
Yeah, it'd be somethig you have to design and build yourself