Added segmentation support for server reply. (#974)
Added segmentation support for server devices for some services. Configure BACNET_SEGMENTATION_ENABLED=1 to include in the library, and adjust BACNET_MAX_SEGMENTS_ACCEPTED for maximum number of segments.
This commit is contained in:
@@ -108,7 +108,9 @@ void handler_device_communication_control(
|
||||
debug_print("DeviceCommunicationControl: "
|
||||
"Missing Required Parameter. Sending Reject!\n");
|
||||
goto DCC_FAILURE;
|
||||
} else if (service_data->segmented_message) {
|
||||
}
|
||||
#if !BACNET_SEGMENTATION_ENABLED
|
||||
else if (service_data->segmented_message) {
|
||||
len = abort_encode_apdu(
|
||||
&Handler_Transmit_Buffer[pdu_len], service_data->invoke_id,
|
||||
ABORT_REASON_SEGMENTATION_NOT_SUPPORTED, true);
|
||||
@@ -116,6 +118,7 @@ void handler_device_communication_control(
|
||||
"Sending Abort - segmented message.\n");
|
||||
goto DCC_FAILURE;
|
||||
}
|
||||
#endif
|
||||
/* decode the service request only */
|
||||
len = dcc_decode_service_request(
|
||||
service_request, service_len, &timeDuration, &state, &password);
|
||||
|
||||
Reference in New Issue
Block a user