libcoap
libcoap copied to clipboard
Not able to run piggybacked example
Hello sir,
When I ran the client and server file as per your instruction, I got the following errors.
- ‘coap_pdu_t {aka struct coap_pdu_t}’ has no member named ‘hdr’
- ‘coap_context_t {aka struct coap_context_t}’ has no member named ‘hdr’
I resolved it error by removing hdr.
- ‘coap_pdu_t {aka struct coap_pdu_t}’ has no member named ‘id’
I resolved it by adding tid instead of id.
- ‘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
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.