[riot-devel] MicroCoap payload EMPTY with more than 1 header attribute

ALESSANDRO NICOLI alessandro.nicoli at studenti.unipr.it
Tue Oct 18 17:22:13 CEST 2016


Sorry, i forgot to set the Object

*best regards, *
*Alessandro*

2016-10-18 16:53 GMT+02:00 ALESSANDRO NICOLI <
alessandro.nicoli at studenti.unipr.it>:

> 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 handle_get_well_known_core().
>
> Now when i call the /.well-known/core the response is as follows  :
>
>  </.well-known/core>;ct=40,</riot/board_GET_SAMR21>;ct=0;if=GET
>
> And that is what i want, but now, when i perform a GET request onto
> "board_GET_SAMR21" the payload is EMPTY.
>
> So, there is something that i forgot to modify, as packet length or
> something similar?
>
>
>
> Thanks all as always!
> *best regards, *
> *Alessandro*
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/devel/attachments/20161018/9dd89765/attachment.html>


More information about the devel mailing list