From a61b921290cf6abc9070e29633c1c590165e0ba6 Mon Sep 17 00:00:00 2001 From: delme-imgtec Date: Fri, 8 Jul 2016 15:50:20 +1200 Subject: [PATCH] For erbium make sure coap message id is random Signed-off-by: delme-imgtec --- core/src/common/coap_abstraction_erbium.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/common/coap_abstraction_erbium.c b/core/src/common/coap_abstraction_erbium.c index 11a708b..f1e1082 100644 --- a/core/src/common/coap_abstraction_erbium.c +++ b/core/src/common/coap_abstraction_erbium.c @@ -94,6 +94,7 @@ CoapInfo * coap_Init(const char * ipAddress, int port, bool secure, int logLevel Lwm2m_Info("Bind port: %d\n", port); memset(CurrentTransaction, 0, sizeof(CurrentTransaction)); memset(Observations, 0, sizeof(Observations)); + coap_init_connection(port); coap_init_transactions(); coap_set_service_callback(coap_HandleRequest); DTLS_Init();