Inateck-Technology-Inc / ios_sdk

0 stars 1 forks source link

Appears SDK is missing example or documentation on how to receive scan data? #2

Open bentayloruk opened 2 months ago

bentayloruk commented 2 months ago

I have this SDK sample running successfully on my phone. However, it does not seem to contain an example of how to receive scanned barcode data from the scanner.

The README seems to suggest that I'm looking for a connect method that takes a callback in order to receive scanning content. The example being:

connect(`mac`, `callback`)

However, when I look at the connect overloads in this latest SDK code, there is no such overload.

image

Please could someone point me to the documentation or samples that would help me understand how to receive and decode scanning data?

soSeven commented 2 months ago

@bentayloruk Greetings, you are now able to leverage the provided API to acquire scan outcomes, encoded in UTF-8 by default. Should custom encodings have been applied to the scan results—such as tagging them with a Tab character at the end—the API will deliver the results as hexadecimal string formats. It's imperative to decode these responses using your predefined custom encoding lookup table for accurate interpretation.

func connect(timeout: TimeInterval, callBack: ((String) -> Void)?, completion: @escaping (Result<Void, any Error>) -> Void)