Skip to content

relativeDistance is not working #8

@claudiodriussi

Description

@claudiodriussi

Hi, Justin-roy

Thanks for your work. Your plugin is almost perfect for my needs. My last needed feature is to get relative distance of tags.
To keep it working I think you must implement the Actions.TagLocationing.Perform API as described in:

https://techdocs.zebra.com/dcs/rfid/android/2-0-2-82/tutorials/locate/

In Zebra offical deno app I found the file: LocationingController.java which contains:

protected Boolean doInBackground(Void... voids) {
    locateLock.lock();
    try {
        if (RFIDController.asciiMode) {
            RFIDController.mConnectedReader.Actions.TagLocationing.Perform(asciitohex.convert(locateTag), null, null);
            RFIDController.isLocatingTag = true;
        }else {
            RFIDController.mConnectedReader.Actions.TagLocationing.Perform(locateTag, null, null);
            RFIDController.isLocatingTag = true;
        }
    } catch (InvalidUsageException e) {
        Log.d(TAG,  "Returned SDK Exception");
        invalidUsageException = e;
    } catch (OperationFailureException e) {
        Log.d(TAG,  "Returned SDK Exception");
        operationFailureException = e;
    }
    return null;
}

I think it can be helpful.

Can you try?
Best Regards.
Claudio

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions