nikosft / libcoap

Examples that use the libCoAP library
24 stars 11 forks source link

Not able to run piggybacked example #4

Open vishal623 opened 6 years ago

vishal623 commented 6 years ago

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.

3) ‘coap_pdu_t {aka struct coap_pdu_t}’ has no member named ‘id’

I resolved it by adding tid instead of id.

4) ‘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 commented 6 years ago

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.