Remove unused message_id from coap_context_t and coap_async_t

It appears that message_id was left in coap_context_t and coap_async_t
when coap_session_t was created.

include/coap2/async.h:
include/coap2/net.h:

Remove message_id.

src/net.c:

No longer just set message_id.
This commit is contained in:
Jon Shallow committed 2019-05-06 15:51:23 +01:00
1 parent a5f434e685
commit 93e558ba02
3 files changed
-11

No files matched your search

-3
View File
@@ -469,9 +469,6 @@ coap_new_context(
/* set default CSM timeout */
c->csm_timeout = 30;
/* initialize message id */
prng((unsigned char *)&c->message_id, sizeof(uint16_t));
if (listen_addr) {
coap_endpoint_t *endpoint = coap_new_endpoint(c, listen_addr, COAP_PROTO_UDP);
if (endpoint == NULL) {