From 97966c9310251ac396466b5a1cb383a5ba957cec Mon Sep 17 00:00:00 2001 From: skarg Date: Wed, 9 Dec 2015 16:54:18 +0000 Subject: [PATCH] When putting together a confirmed COV Notification, the flag "data_expecting_reply" in npdu_data was not set to true for confirmedCOVnotifications. So in the dlmstp.c state machine, it would send the confirmedCOVNotification, but not wait for a reply. Instead it would send the Token right away. Thank you, Ettore Colicchio! --- bacnet-stack/demo/handler/h_cov.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bacnet-stack/demo/handler/h_cov.c b/bacnet-stack/demo/handler/h_cov.c index 33a630d0..7b0dbdc8 100644 --- a/bacnet-stack/demo/handler/h_cov.c +++ b/bacnet-stack/demo/handler/h_cov.c @@ -489,6 +489,7 @@ static bool cov_send_request( cov_data.timeRemaining = cov_subscription->lifetime; cov_data.listOfValues = value_list; if (cov_subscription->flag.issueConfirmedNotifications) { + npdu_data.data_expecting_reply = true; invoke_id = tsm_next_free_invokeID(); if (invoke_id) { cov_subscription->invokeID = invoke_id;