Price Server#

Callbacks for Price Server Component.

Callbacks#

void

Initialize he price cluster server.

void
emberAfPluginPriceServerNewActivePriceMatrixCallback(const EmberAfPriceCommonInfo *priceCommonInfo, const EmberAfScheduledPriceMatrix *priceMatrix)

Notify the application that a new PriceMatrix has become available.

void
emberAfPluginPriceServerNewActiveTariffInformationCallback(const EmberAfPriceCommonInfo *priceCommonInfo, const EmberAfScheduledTariff *priceTariffInfo)

Notify the application that a new tariff information has become available.

void
emberAfPluginPriceServerNewActiveBlockThresholdsInformationCallback(const EmberAfPriceCommonInfo *priceCommonInfo, const EmberAfScheduledBlockThresholds *priceBlockThresholds)

Notify the application that a new block thresholds information has become available.

void
emberAfPluginPriceServerNewActiveBlockPeriodInformationCallback(const EmberAfPriceCommonInfo *priceCommonInfo, const EmberAfPriceBlockPeriod *priceBlockPeriods)

Notify the application that a new block period information has become available.

Callbacks Documentation#

emberAfPriceClusterServerInitCallback#

void emberAfPriceClusterServerInitCallback (uint8_t endpoint)

Initialize he price cluster server.

Parameters
TypeDirectionArgument NameDescription
uint8_tN/Aendpoint

Endpoint that is being initialized Ver.: always


emberAfPluginPriceServerNewActivePriceMatrixCallback#

void emberAfPluginPriceServerNewActivePriceMatrixCallback (const EmberAfPriceCommonInfo * priceCommonInfo, const EmberAfScheduledPriceMatrix * priceMatrix)

Notify the application that a new PriceMatrix has become available.

Parameters
TypeDirectionArgument NameDescription
const EmberAfPriceCommonInfo *N/ApriceCommonInfo

Ver.: always

const EmberAfScheduledPriceMatrix *N/ApriceMatrix

Ver.: always

The application is responsible for updating proper ZCL attributes to reflect the necessary vendor-specific behaviors. priceCommonInfo contains common information, such as startTime. priceMatrix contains the PriceMatrix information.


emberAfPluginPriceServerNewActiveTariffInformationCallback#

void emberAfPluginPriceServerNewActiveTariffInformationCallback (const EmberAfPriceCommonInfo * priceCommonInfo, const EmberAfScheduledTariff * priceTariffInfo)

Notify the application that a new tariff information has become available.

Parameters
TypeDirectionArgument NameDescription
const EmberAfPriceCommonInfo *N/ApriceCommonInfo

Ver.: always

const EmberAfScheduledTariff *N/ApriceTariffInfo

Ver.: always

The application is responsible for updating proper ZCL attributes to reflect the necessary vendor-specific behaviors. priceCommonInfo contains common information, such as startTime. priceTariffInfo contains the price matrix information.


emberAfPluginPriceServerNewActiveBlockThresholdsInformationCallback#

void emberAfPluginPriceServerNewActiveBlockThresholdsInformationCallback (const EmberAfPriceCommonInfo * priceCommonInfo, const EmberAfScheduledBlockThresholds * priceBlockThresholds)

Notify the application that a new block thresholds information has become available.

Parameters
TypeDirectionArgument NameDescription
const EmberAfPriceCommonInfo *N/ApriceCommonInfo

Ver.: always

const EmberAfScheduledBlockThresholds *N/ApriceBlockThresholds

Ver.: always

The application is responsible for updating proper ZCL attributes to reflect the necessary vendor-specific behaviors. priceCommonInfo contains common information, such as startTime. priceTariffInfo contains the BlockThresholds information.


emberAfPluginPriceServerNewActiveBlockPeriodInformationCallback#

void emberAfPluginPriceServerNewActiveBlockPeriodInformationCallback (const EmberAfPriceCommonInfo * priceCommonInfo, const EmberAfPriceBlockPeriod * priceBlockPeriods)

Notify the application that a new block period information has become available.

Parameters
TypeDirectionArgument NameDescription
const EmberAfPriceCommonInfo *N/ApriceCommonInfo

Ver.: always

const EmberAfPriceBlockPeriod *N/ApriceBlockPeriods

Ver.: always

The application is responsible for updating proper ZCL attributes to reflect the necessary vendor-specific behaviors. priceCommonInfo contains common information, such as startTime. priceBlockPeriod contains the BlockPeriod information.