#Ronit

1 messages · Page 1 of 1 (latest)

feral tinselBOT
pliant moss
#

Hello! What are you trying to do? Are you just debugging why the reader is offline?

livid meteor
#

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

pliant moss
#

Are you working with internet readers, or a bluetooth reader

livid meteor
#

bluetooth reader

#

M2 reader

pliant moss
#

gotcha - let me see what information I can find

livid meteor
#

ok

#

come soon with solution 😃

pliant moss
#

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

livid meteor
#

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

pliant moss
#

If the M2 reader is off then there's literally no way for us to discover it and get it's current status

livid meteor
#

any suggestion for me to get response if reader is offline ?

pliant moss
#

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"

livid meteor
#

this the slution i want to apply but could not found anywhere

pliant moss
#

Yeah, it'd be somethig you have to design and build yourself