Skip to content

does this lib support query params? #15

@DanielBustillos

Description

@DanielBustillos

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions