Modules#
EmberAfPriceClientBillingPeriod
EmberAfPriceClientBlockThreshold
EmberAfPriceClientCalorificValue
EmberAfPriceClientConversionFactor
EmberAfPriceClientCreditPayment
EmberAfPriceClientCurrencyConversion
EmberAfPriceClientBillingPeriodTable
EmberAfPriceClientBlockPeriodTable
EmberAfPriceClientBlockThresholdTable
EmberAfPriceClientCalorificValueTable
EmberAfPriceClientCo2ValueTable
EmberAfPriceClientConversionFactorTable
EmberAfPriceClientCppEventTable
EmberAfPriceClientCreditPaymentTable
EmberAfPriceClientCurrencyConversionTable
EmberAfPriceClientTierLabelsTable
Price Client#
API and Callbacks for the Price Cluster Client Component.
This component provides an implementation of a Price client. It simply stores the prices received over-the-air. This component requires extending to act on the price changes.
API#
Initialize the consolidated bills table.
Return the index of the currently active CO2 entry, or 0xFF if no active entry can be found.
Print information about the CPP event.
Return the currency conversion table index with a matching eventId.
Return the index of the currently active currency conversion entry, or 0xFF if no active entry can be found.
Functions#
Return the block period table index with a matching eventId.
Print the information at the specified index of the block period table.
Return the conversion factor table index with a matching eventId.
Print the information at the specified index of the conversion factor table.
Return the calorific value table index with a matching eventId.
Print the information at the specified index of the calorific value table.
Return the index of the currently active tier label table entry, or 0xFF if no active entry can be found.
Print the information at the specified index of the tier label table.
Print the information at the specified index of the CO2 value table.
Print the tier label table.
Return the index of the active consolidated bill table.
Print the information at the specified index of the consolidated bill table.
Return the credit payment table index with a matching eventId.
Print the credit payment table entry data of the index with a valid matching eventId.
Print the information at the specified index of the credit payment table.
Print the information at the specified index of the currency conversion table.
Return the index of the currently active billing period entry, or 0xFF if no active entry can be found.
Print the information at the specified index of the billing period table.
Macros#
API Documentation#
emberAfPriceInitConsolidatedBillsTable#
void emberAfPriceInitConsolidatedBillsTable (uint8_t endpoint)
Initialize the consolidated bills table.
N/A | endpoint | The relevant endpoint. |
233
of file app/framework/plugin/price-client/price-client.h
emberAfPriceClusterGetActiveCo2ValueIndex#
uint8_t emberAfPriceClusterGetActiveCo2ValueIndex (uint8_t endpoint)
Return the index of the currently active CO2 entry, or 0xFF if no active entry can be found.
N/A | endpoint | The relevant endpoint. |
Returns
The index of the active CO2 entry.
243
of file app/framework/plugin/price-client/price-client.h
emberAfPricePrintCppEvent#
void emberAfPricePrintCppEvent (uint8_t endpoint)
Print information about the CPP event.
N/A | endpoint | THe relevant endpoint. |
251
of file app/framework/plugin/price-client/price-client.h
emberAfPriceClusterCurrencyConversionTableGetIndexByEventId#
uint8_t emberAfPriceClusterCurrencyConversionTableGetIndexByEventId (uint8_t endpoint, uint32_t issuerEventId)
Return the currency conversion table index with a matching eventId.
N/A | endpoint | The relevant endpoint. |
N/A | issuerEventId | The eventId that should be searched for in the currency conversion table. |
Returns
The index with a valid matching event ID.
261
of file app/framework/plugin/price-client/price-client.h
emberAfPriceClusterGetActiveCurrencyIndex#
uint8_t emberAfPriceClusterGetActiveCurrencyIndex (uint8_t endpoint)
Return the index of the currently active currency conversion entry, or 0xFF if no active entry can be found.
N/A | endpoint | The relevant endpoint. |
Returns
The index of the active currency conversion entry.
271
of file app/framework/plugin/price-client/price-client.h
Function Documentation#
emAfPluginPriceClientPrintInfo#
void emAfPluginPriceClientPrintInfo (uint8_t endpoint)
N/A | endpoint |
277
of file app/framework/plugin/price-client/price-client.h
emAfPluginPriceClientPrintByEventId#
void emAfPluginPriceClientPrintByEventId (uint8_t endpoint, uint32_t issuerEventId)
N/A | endpoint | |
N/A | issuerEventId |
278
of file app/framework/plugin/price-client/price-client.h
emAfPriceClearPriceTable#
void emAfPriceClearPriceTable (uint8_t endpoint)
N/A | endpoint |
279
of file app/framework/plugin/price-client/price-client.h
emAfPriceGetBlockPeriodTableIndexByEventId#
uint8_t emAfPriceGetBlockPeriodTableIndexByEventId (uint8_t endpoint, uint32_t issuerEventId)
Return the block period table index with a matching eventId.
N/A | endpoint | The relevant endpoint. |
N/A | issuerEventId | The eventId that should be searched for in the block period table. |
Returns
The index with a valid matching event ID.
289
of file app/framework/plugin/price-client/price-client.h
emAfPricePrintBlockPeriodTableIndex#
void emAfPricePrintBlockPeriodTableIndex (uint8_t endpoint, uint8_t index)
Print the information at the specified index of the block period table.
N/A | endpoint | The relevant endpoint. |
N/A | index | The index whose data should be printed. |
299
of file app/framework/plugin/price-client/price-client.h
emAfPriceGetConversionFactorIndexByEventId#
uint8_t emAfPriceGetConversionFactorIndexByEventId (uint8_t endpoint, uint32_t issuerEventId)
Return the conversion factor table index with a matching eventId.
N/A | endpoint | The relevant endpoint. |
N/A | issuerEventId | The eventId that should be searched for in the conversion factor table. |
Returns
The index with a valid matching event ID.
309
of file app/framework/plugin/price-client/price-client.h
emAfPricePrintConversionFactorEntryIndex#
void emAfPricePrintConversionFactorEntryIndex (uint8_t endpoint, uint8_t index)
Print the information at the specified index of the conversion factor table.
N/A | endpoint | The relevant endpoint. |
N/A | index | The index whose data should be printed. |
318
of file app/framework/plugin/price-client/price-client.h
emAfPriceGetCalorificValueIndexByEventId#
uint8_t emAfPriceGetCalorificValueIndexByEventId (uint8_t endpoint, uint32_t issuerEventId)
Return the calorific value table index with a matching eventId.
N/A | endpoint | The relevant endpoint. |
N/A | issuerEventId | The eventId that should be searched for in the calorific value table. |
Returns
The index with a valid matching event ID.
328
of file app/framework/plugin/price-client/price-client.h
emAfPricePrintCalorificValueEntryIndex#
void emAfPricePrintCalorificValueEntryIndex (uint8_t endpoint, uint8_t index)
Print the information at the specified index of the calorific value table.
N/A | endpoint | The relevant endpoint. |
N/A | index | The index whose data should be printed. |
337
of file app/framework/plugin/price-client/price-client.h
emAfPriceGetActiveTierLabelTableIndexByTariffId#
uint8_t emAfPriceGetActiveTierLabelTableIndexByTariffId (uint8_t endpoint, uint32_t tariffId)
Return the index of the currently active tier label table entry, or 0xFF if no active entry can be found.
N/A | endpoint | The relevant endpoint. |
N/A | tariffId |
Returns
The index of the active tier label table entry.
347
of file app/framework/plugin/price-client/price-client.h
emAfPricePrintTierLabelTableEntryIndex#
void emAfPricePrintTierLabelTableEntryIndex (uint8_t endpoint, uint8_t index)
Print the information at the specified index of the tier label table.
N/A | endpoint | The relevant endpoint. |
N/A | index | The index whose data should be printed. |
356
of file app/framework/plugin/price-client/price-client.h
emAfPricePrintCo2ValueTablePrintIndex#
void emAfPricePrintCo2ValueTablePrintIndex (uint8_t endpoint, uint8_t index)
Print the information at the specified index of the CO2 value table.
N/A | endpoint | The relevant endpoint. |
N/A | index | The index whose data should be printed. |
365
of file app/framework/plugin/price-client/price-client.h
emAfPriceConsolidatedBillTableGetIndexWithEventId#
uint8_t emAfPriceConsolidatedBillTableGetIndexWithEventId (uint8_t endpoint, uint32_t issuerEventId)
Print the tier label table.
N/A | endpoint | The relevant endpoint. |
N/A | issuerEventId | The eventId that should be searched for in the consolidated bill table. |
Return the consolidated bill table index with a matching eventId.
Returns
The index with a valid matching event ID.
381
of file app/framework/plugin/price-client/price-client.h
emAfPriceConsolidatedBillTableGetCurrentIndex#
uint8_t emAfPriceConsolidatedBillTableGetCurrentIndex (uint8_t endpoint)
Return the index of the active consolidated bill table.
N/A | endpoint | The relevant endpoint. |
Returns
The index of the consolidated bills table with a valid matching event ID, or 0xFF if no valid match is found.
391
of file app/framework/plugin/price-client/price-client.h
emAfPricePrintConsolidatedBillTableIndex#
void emAfPricePrintConsolidatedBillTableIndex (uint8_t endpoint, uint8_t index)
Print the information at the specified index of the consolidated bill table.
N/A | endpoint | The relevant endpoint. |
N/A | index | The index whose data should be printed. |
400
of file app/framework/plugin/price-client/price-client.h
emAfPriceCreditPaymentTableGetIndexWithEventId#
uint8_t emAfPriceCreditPaymentTableGetIndexWithEventId (uint8_t endpoint, uint32_t issuerEventId)
Return the credit payment table index with a matching eventId.
N/A | endpoint | The eventId that should be searched for in the credit payment table. |
N/A | issuerEventId |
Returns
The index with a valid matching event ID.
409
of file app/framework/plugin/price-client/price-client.h
emAfPricePrintCreditPaymentTableEventId#
void emAfPricePrintCreditPaymentTableEventId (uint32_t issuerEventId, issuerEventId)
Print the credit payment table entry data of the index with a valid matching eventId.
N/A | issuerEventId | The relevant endpoint. |
N/A | issuerEventId | The eventId that should be found in the credit payment table. |
418
of file app/framework/plugin/price-client/price-client.h
emAfPricePrintCreditPaymentTableIndex#
void emAfPricePrintCreditPaymentTableIndex (uint8_t endpoint, uint8_t index)
Print the information at the specified index of the credit payment table.
N/A | endpoint | The relevant endpoint. |
N/A | index | The index whose data should be printed. |
427
of file app/framework/plugin/price-client/price-client.h
emAfPricePrintCurrencyConversionTableIndex#
void emAfPricePrintCurrencyConversionTableIndex (uint8_t endpoint, uint8_t index)
Print the information at the specified index of the currency conversion table.
N/A | endpoint | The relevant endpoint. |
N/A | index | The index whose data should be printed. |
436
of file app/framework/plugin/price-client/price-client.h
emAfPriceGetActiveBillingPeriodIndex#
uint8_t emAfPriceGetActiveBillingPeriodIndex (uint8_t endpoint)
Return the index of the currently active billing period entry, or 0xFF if no active entry can be found.
N/A | endpoint | The relevant endpoint. |
Returns
The index of the active billing period entry.
446
of file app/framework/plugin/price-client/price-client.h
emAfPricePrintBillingPeriodTableEntryIndex#
void emAfPricePrintBillingPeriodTableEntryIndex (uint8_t endpoint, uint8_t index)
Print the information at the specified index of the billing period table.
N/A | endpoint | The relevant endpoint. |
N/A | index | The index whose data should be printed. |
455
of file app/framework/plugin/price-client/price-client.h
Macro Definition Documentation#
EMBER_AF_PLUGIN_PRICE_CLIENT_TABLE_SIZE#
#define EMBER_AF_PLUGIN_PRICE_CLIENT_TABLE_SIZEValue:
2
42
of file app/framework/plugin/price-client/price-client.h
ZCL_PRICE_CLUSTER_PRICE_RATIO_NOT_USED#
#define ZCL_PRICE_CLUSTER_PRICE_RATIO_NOT_USEDValue:
0xFF
45
of file app/framework/plugin/price-client/price-client.h
ZCL_PRICE_CLUSTER_GENERATION_PRICE_NOT_USED#
#define ZCL_PRICE_CLUSTER_GENERATION_PRICE_NOT_USEDValue:
0xFFFFFFFFUL
46
of file app/framework/plugin/price-client/price-client.h
ZCL_PRICE_CLUSTER_GENERATION_PRICE_RATIO_NOT_USED#
#define ZCL_PRICE_CLUSTER_GENERATION_PRICE_RATIO_NOT_USEDValue:
0xFF
47
of file app/framework/plugin/price-client/price-client.h
ZCL_PRICE_CLUSTER_ALTERNATE_COST_DELIVERED_NOT_USED#
#define ZCL_PRICE_CLUSTER_ALTERNATE_COST_DELIVERED_NOT_USEDValue:
0xFFFFFFFFUL
48
of file app/framework/plugin/price-client/price-client.h
ZCL_PRICE_CLUSTER_ALTERNATE_COST_UNIT_NOT_USED#
#define ZCL_PRICE_CLUSTER_ALTERNATE_COST_UNIT_NOT_USEDValue:
0xFF
49
of file app/framework/plugin/price-client/price-client.h
ZCL_PRICE_CLUSTER_ALTERNATE_COST_TRAILING_DIGIT_NOT_USED#
#define ZCL_PRICE_CLUSTER_ALTERNATE_COST_TRAILING_DIGIT_NOT_USEDValue:
0xFF
50
of file app/framework/plugin/price-client/price-client.h
ZCL_PRICE_CLUSTER_NUMBER_OF_BLOCK_THRESHOLDS_NOT_USED#
#define ZCL_PRICE_CLUSTER_NUMBER_OF_BLOCK_THRESHOLDS_NOT_USEDValue:
0xFF
51
of file app/framework/plugin/price-client/price-client.h
ZCL_PRICE_CLUSTER_PRICE_CONTROL_NOT_USED#
#define ZCL_PRICE_CLUSTER_PRICE_CONTROL_NOT_USEDValue:
0x00
52
of file app/framework/plugin/price-client/price-client.h
UNSPECIFIED_PROVIDER_ID#
#define UNSPECIFIED_PROVIDER_IDValue:
0xFFFFFFFF
56
of file app/framework/plugin/price-client/price-client.h
UNSPECIFIED_DURATION#
#define UNSPECIFIED_DURATIONValue:
0xFFFFFFFF
57
of file app/framework/plugin/price-client/price-client.h
EMBER_AF_PLUGIN_PRICE_CLUSTER_MAX_CREDIT_PAYMENT_REF_LENGTH#
#define EMBER_AF_PLUGIN_PRICE_CLUSTER_MAX_CREDIT_PAYMENT_REF_LENGTHValue:
20
130
of file app/framework/plugin/price-client/price-client.h