Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there an example for the API to add/delete tags? #33

Open
HanYangZhao opened this issue Feb 6, 2020 · 4 comments
Open

Is there an example for the API to add/delete tags? #33

HanYangZhao opened this issue Feb 6, 2020 · 4 comments
Assignees
Labels

Comments

@HanYangZhao
Copy link

I'm trying to figure out what do put in the json parameters, but I'm unsure as to put in "length" and "readData" from swagger.yaml

@iomz iomz self-assigned this Feb 6, 2020
@iomz iomz added the question label Feb 6, 2020
@iomz
Copy link
Owner

iomz commented Feb 8, 2020

The swagger description is totally outdated as I shifted from the Web API to the simulator mode as I needed to deal with thousands of tags – with the Web API the latency/overhead was too high. The length was the total length for non-GS1 EPC and readData was the C1G2ReadOpSpecResult's ReadData to simulate the read of the user memory.

The web API is, however, still available in server mode simply taking TagRecord from go-llrp.

E.g.,

% cat tags.json
[
    {
        "PCbits": "3000",
        "EPC": "307227627f2ea48000001c6a"
    }
]
% curl -X POST http://localhost:8080/api/v1/tags -d @tags.json

@HanYangZhao
Copy link
Author

I tried it and it worked! However, golemu doesn't seem to respond to any other curl request after the initial one. All requests seems to hang forever

@iomz
Copy link
Owner

iomz commented Feb 11, 2020

It seems golemu now has a bug with the deprecated BindWith(). The HTTP connection handling should be fixed.

@HanYangZhao
Copy link
Author

I updated BindWith() to MustBindWith(), problem still seems to persists

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants