libcoap icon indicating copy to clipboard operation
libcoap copied to clipboard

Not able to run piggybacked example

Open vishal623 opened this issue 6 years ago • 1 comments

Hello sir,

When I ran the client and server file as per your instruction, I got the following errors.

  1. ‘coap_pdu_t {aka struct coap_pdu_t}’ has no member named ‘hdr’
  2. ‘coap_context_t {aka struct coap_context_t}’ has no member named ‘hdr’

I resolved it error by removing hdr.

  1. ‘coap_pdu_t {aka struct coap_pdu_t}’ has no member named ‘id’

I resolved it by adding tid instead of id.

  1. ‘coap_context_t {aka struct coap_context_t}’ has no member named ‘sock’

I already checked the code sock->fd replaces it. So, I did, but still, it is showing me the same error.

I am using these example for testing only. I have to build my case based on this.

Thanks Vishal

vishal623 avatar May 28 '18 11:05 vishal623

Hello sir,

I am unable to execute your code in a latest libcoap branch. There is a compatibility issue with existing code. So many function name and the declaration has been changed.

vishal623 avatar May 29 '18 10:05 vishal623