name=Green Power Client
description=A plugin implementing the client-side functionality of the Green Power cluster.
category=Green Power

qualityString=Beta Release
quality=development

#introducedIn=gp-0.8-14-0563-8

includedByDefault=true

sourceFiles=green-power-client.c,green-power-client-cli.c

dependsOnClusterClient=Green Power
requiredApis=gp,gp-util,green-power-common

implementedCallbacks=emberAfGreenPowerClusterGpNotificationResponseCallback, emberAfGreenPowerClusterGpPairingCallback, emberAfGreenPowerClusterGpProxyCommissioningModeCallback, emberAfGreenPowerClusterGpResponseCallback, emberAfGreenPowerClusterGpSinkTableResponseCallback, emberAfGreenPowerClusterGpProxyTableRequestCallback,emberAfPluginGreenPowerClientInitCallback

options=gppCommissioningWindow,gppDuplicateTimeoutSec,maxAddrEntries,maxSeqNumEntriesPerAddr

gppCommissioningWindow.name=Proxy Commissioning Window (secs)
gppCommissioningWindow.description=Maximum amount of time (secs) the proxy is allowed to be in commissioning mode.
gppCommissioningWindow.type=NUMBER:1,65535
gppCommissioningWindow.default=160

gppDuplicateTimeoutSec.name=Proxy Duplicate Timeout (secs)
gppDuplicateTimeoutSec.description=Maximum amount of time (secs) the proxy keeps information on the received GPDF in order to filter out duplicates.
gppDuplicateTimeoutSec.type=NUMBER:1,65535
gppDuplicateTimeoutSec.default=160

maxAddrEntries.name=Maximum number of addresses stored for duplicate filtering
maxAddrEntries.description=Maximum number of GP addresses the plugin will store for duplicate filtering
maxAddrEntries.type=NUMBER:1,255
maxAddrEntries.default=3

maxSeqNumEntriesPerAddr.name=Maximum number of saved random sequence numbers per address
maxSeqNumEntriesPerAddr.description=Maximum number of saved random sequence numbers per address used for duplicate filtering
maxSeqNumEntriesPerAddr.type=NUMBER:1,255
maxSeqNumEntriesPerAddr.default=4

events=exitCommissioning,channel

additionalMacros=EZSP_APPLICATION_HAS_GPEP_INCOMING_MESSAGE_HANDLER,EZSP_APPLICATION_HAS_DGP_SENT_HANDLER

setup(bookkeeping) {
  retrieveAttributeAndCraftResponse=emAfPluginGreenPowerClientRetrieveAttributeAndCraftResponse
}