Compile-time options
This section describes the compile-time options that may be enabled in the zcl_options.h file of an application that uses the DRLC cluster.
The DRLC cluster is enabled by defining CLD_DRLC.
Client and server versions of the cluster are defined by DRLC_CLIENT and DRLC_SERVER, respectively.
Length of LCE Lists
The number of LCEs that may be stored in an LCE list (see Section 41.4.2) is, by default, three. This default can be over-ridden on the cluster server and a cluster client by assigning the desired values to the macros:
SE_DRLC_NUMBER_OF_SERVER_LOAD_CONTROL_ENTRIES (server)
SE_DRLC_NUMBER_OF_CLIENT_LOAD_CONTROL_ENTRIES (client)
LCE Re-sends
The DRLC cluster server may re-send an LCE when it becomes active in order to support clients that do not have a clock. This facility should not be enabled unless explicitly required. To enable this functionality, define:
DRLC_SEND_LCE_AGAIN_AT_ACTIVE_TIME
Message Signing (Security)
On DRLC cluster clients that need to implement message signing (see Section 41.6), the following must be defined:
#define SE_MESSAGE_SIGNING
For a DRLC cluster server to check a message signature, it is necessary to locally store the certificates of any nodes that perform key establishment. The maximum number of certificates that can be stored is configured by defining the following on the server:
#define KEC_NUM_CERTIFICATES < n>
where n is the number of certificates that can be stored.
Parent topic:Demand-Response and Load Control Cluster