From 0a18592bc8bf5e09beac13e88d67cd8cf3cd1b1e Mon Sep 17 00:00:00 2001 From: skarg Date: Mon, 10 Aug 2015 15:55:06 +0000 Subject: [PATCH] Fixed when pending events are not displayed in the getEventInformation demo. --- bacnet-stack/demo/getevent/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bacnet-stack/demo/getevent/main.c b/bacnet-stack/demo/getevent/main.c index 16f330f6..2f7f724a 100755 --- a/bacnet-stack/demo/getevent/main.c +++ b/bacnet-stack/demo/getevent/main.c @@ -54,7 +54,11 @@ #include "txbuf.h" #include "dlenv.h" -#define MAX_OBJ_IDS_IN_GE_ACK 10 +/* Depending on on the max-APDU-length-accepted (varies per device), + the amount of event entries in the GetEventInformation ACK can sum + up to 24 max (max APDU length is 1476), especially if the flag + MORE_EVENTS is true. */ +#define MAX_OBJ_IDS_IN_GE_ACK 24 /* buffer used for receive */ static uint8_t Rx_Buf[MAX_MPDU] = {0};