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?
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?