MicroCoAP, empty payload with more than 1 attribute

Hi all,

I’ve tried to add another 2 attributes to the “coap_endpoint_t” structure :

typedef struct { coap_method_t method; coap_endpoint_func handler; const coap_endpoint_path_t *path; const char *core_attr; const char *if_attr; // Interface attribute //const char *title;

} coap_endpoint_t;

Obviously i added the related attributes also in the coap.c file, into the handle_get_well_known_core().

Now when i call the /.well-known/core resource, the response is as follows :


And that is what i want, but now, when i perform a GET request onto the other resource /board_GET_SAMR21 the payload is EMPTY, where the right response should be a JSON string.

So, there is something that i forgot to modify, as packet length or something similar?

Thanks all as always!