- fixed problem with read access to GCB (see github #130)

pull/179/head
Michael Zillgith 7 years ago
parent 0b2d97c738
commit 732ad79070

@ -41,6 +41,7 @@ option(CONFIG_IEC61850_CONTROL_SERVICE "Build with support for IEC 61850 control
option(CONFIG_IEC61850_REPORT_SERVICE "Build with support for IEC 61850 reporting services" ON)
option(CONFIG_IEC61850_LOG_SERVICE "Build with support for IEC 61850 logging services" ON)
option(CONFIG_IEC61850_SETTING_GROUPS "Build with support for IEC 61850 setting group services" ON)
option(CONFIG_IEC61850_SUPPORT_USER_READ_ACCESS_CONTROL "Allow user provided callback to control read access" ON)
set(CONFIG_REPORTING_DEFAULT_REPORT_BUFFER_SIZE "65536" CACHE STRING "Default buffer size for buffered reports in byte" )

@ -136,6 +136,8 @@ FunctionalConstraint_toString(FunctionalConstraint fc) {
return "BR";
case IEC61850_FC_LG:
return "LG";
case IEC61850_FC_GO:
return "GO";
default:
return NULL;
}
@ -221,6 +223,12 @@ FunctionalConstraint_fromString(const char* fcString)
return IEC61850_FC_NONE;
}
if (fcString[0] == 'G') {
if (fcString[1] == 'O')
return IEC61850_FC_GO;
return IEC61850_FC_NONE;
}
return IEC61850_FC_NONE;
}

@ -279,6 +279,8 @@ typedef enum eFunctionalConstraint {
IEC61850_FC_BR = 16,
/** Log control blocks */
IEC61850_FC_LG = 17,
/** Goose control blocks */
IEC61850_FC_GO = 18,
/** All FCs - wildcard value */
IEC61850_FC_ALL = 99,

@ -2479,8 +2479,8 @@ mmsReadAccessHandler (void* parameter, MmsDomain* domain, char* variableId, MmsS
fc = FunctionalConstraint_fromString(separator + 1);
if (fc == IEC61850_FC_BR || fc == IEC61850_FC_US ||
fc == IEC61850_FC_MS || fc == IEC61850_FC_RP ||
fc == IEC61850_FC_LG)
fc == IEC61850_FC_MS || fc == IEC61850_FC_RP ||
fc == IEC61850_FC_LG || fc == IEC61850_FC_GO)
{
return DATA_ACCESS_ERROR_SUCCESS;
}

Loading…
Cancel
Save