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

does this lib support query params? #15

Open
DanielBustillos opened this issue Oct 18, 2024 · 0 comments
Open

does this lib support query params? #15

DanielBustillos opened this issue Oct 18, 2024 · 0 comments

Comments

@DanielBustillos
Copy link

For getting attibutes from a thingsboard server, I want to pass the following CoAP URL:

_COAP_GET_URL = f"/api/v1/{ACCESS_TOKEN}/attributes?sharedKeys={_SHARED_KEYS}"
However, every time I include sharedKeys={_SHARED_KEYS}, I receive the following response:

Message received: type: ACK, method: 4.00, messageid: 14309, payload: bytearray(b''), from: ('MY_IP', 5683)
But when I use:

_COAP_GET_URL = f"/api/v1/{ACCESS_TOKEN}/attributes"
I receive the message correctly.

Could someone please confirm whether the CoAP library supports query parameters in the GET request URL? If so, could you provide guidance or examples on the correct way to include them? Alternatively, if query parameters are not supported, what is the recommended approach to retrieve specific shared attributes?

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

No branches or pull requests

1 participant