From 65f5289af1e2ed7b7b878010abb2811c149420e5 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 62fb83b..e6059c3 100644 --- a/LibOneM2M/OneM2M_Functions.ttcn +++ b/LibOneM2M/OneM2M_Functions.ttcn @@ -4118,7 +4118,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