From 65a4cc6043850541fee6d8ab7abca9195b3399f1 Mon Sep 17 00:00:00 2001 From: reinaortega <miguelangel.reinaortega@etsi.org> Date: Wed, 7 Oct 2020 15:19:05 +0200 Subject: [PATCH] Adding reception of aggregated notification to the default alt statement Signed-off-by: reinaortega <miguelangel.reinaortega@etsi.org> --- LibOneM2M/OneM2M_Functions.ttcn | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/LibOneM2M/OneM2M_Functions.ttcn b/LibOneM2M/OneM2M_Functions.ttcn index 6da85d6..70ae6cf 100644 --- a/LibOneM2M/OneM2M_Functions.ttcn +++ b/LibOneM2M/OneM2M_Functions.ttcn @@ -3551,7 +3551,16 @@ module OneM2M_Functions { var ResponsePrimitive v_response; [] mcaPortIn.receive(mw_request(mw_notify)) -> value v_request { - log(__SCOPE__&": WARNING: Unexpected NOTIFY message received"); + log(__SCOPE__&": WARNING: Unexpected NOTIFY (single notification) message received"); + + //Send response in any case + v_response := valueof(m_responseNotification(int2000, omit)); + v_response.requestIdentifier := vc_request.primitive.requestPrimitive.requestIdentifier; + f_send(e_mca_in_port, m_response(v_response)); + repeat; + } + [] mcaPortIn.receive(mw_request(mw_notifyAggregatedNotification)) -> value v_request { + log(__SCOPE__&": WARNING: Unexpected NOTIFY (aggregated notification) message received"); //Send response in any case v_response := valueof(m_responseNotification(int2000, omit)); -- GitLab