Price Server#
API and Callbacks for the Price Cluster Server Component.
This component provides an implementation of a Smart Energy price server. The price server holds a table of prices locally and answers requests to retrieve the list of commodity prices. It requires extension to add / remove prices from the table and to send out new prices to those devices that have subscribed to the ESI for price updates.
Modules#
sl_zigbee_af_price_block_period_t
sl_zigbee_af_price_billing_period_t
sl_zigbee_af_price_cpp_event_t
sl_zigbee_af_price_consolidated_bills_t
sl_zigbee_af_price_credit_payment_t
sl_zigbee_af_price_conversion_factor_t
sl_zigbee_af_price_calorific_value_t
sl_zigbee_af_price_cancel_tariff_t
sl_zigbee_af_price_co2_value_t
sl_zigbee_af_price_currency_conversion_t
sl_zigbee_af_price_tier_label_value_t
sl_zigbee_af_price_tier_label_table_t
sl_zigbee_af_price_block_period_table_t
sl_zigbee_af_price_billing_period_table_t
sl_zigbee_af_price_cpp_table_t
sl_zigbee_af_price_consolidated_bills_table_t
sl_zigbee_af_price_credit_payment_table_t
sl_zigbee_af_price_conversion_factor_table_t
sl_zigbee_af_price_calorific_value_table_t
sl_zigbee_af_price_co2_table_t
sl_zigbee_af_price_currency_conversion_table_t
sl_zigbee_af_price_cancel_tariff_table_t
sl_zigbee_af_scheduled_block_thresholds_t
sl_zigbee_af_scheduled_block_thresholds_table_t
sl_zigbee_af_scheduled_tariff_t
sl_zigbee_af_scheduled_tariff_table_t
sl_zigbee_af_scheduled_price_matrix_t
sl_zigbee_af_scheduled_price_matrix_table_t
sl_zigbee_af_price_server_info_t
API#
Send the next get scheduled prices command.
Return the number of seconds until the next get scheduled prices command should be sent.
Clear all prices in the price table.
Clear all tariffs in the tariff table.
Clear all price matrices in the price matrix table.
Clear all block thresholds in the block thresholds table.
Get a price used by the price server plugin.
Set values in the block period table.
Send a publish block period command.
Print data in the specified index of the block period table.
Return the number of seconds until the next block period event occurs.
Update block period attributes to match the current block period.
Get a tariff used by the price server plugin.
Retrieve a price matrix entry by index.
Get the block thresholds used by the Price server plugin.
Get a tariff by issuer tariff ID and endpoint.
Get a price matrix by issuer tariff ID and endpoint.
Get the block thresholds by issuer tariff ID and endpoint.
Set a price used by the price server plugin.
Set a tariff used by the price server plugin.
Set a price matrix entry by index.
Set the block thresholds used by the price server plugin.
Get the current price used by the price server plugin.
Find the first free index in the price table.
function to print price
Print tariff table.
Print price matrix.
Print price matrix table.
Print block thresholds.
Print block threshold table.
Publish price message.
Set parameters in the conversion factors table.
Clear the conversion factors table and invalidates all entries.
Send a Publish Conversion Factor command using data at the specified table index.
Return the number of seconds until the next conversion factor event becomes active.
Refresh the conversion factor information if necessary. If the second conversion factor event is active, the first is inactivated and the array is re-sorted.
Set values in the calorific value table.
Return the number of seconds until the next calorific value event will become active.
Refresh the caloric value information if necessary. If the second calorific value event is active, the first is inactivated and the array is re-sorted.
Clear the calorific value table and invalidates all entries.
Send a publish tariff information command.
Print data in the conversion factor table.
Print data in the calorific values table.
Return the number of seconds until the next CO2 value event becomes active.
Refresh the CO2 value information if necessary. If the second CO2 value event is active, the first is inactivated and the array is re-sorted.
Set values in the CO2 value table.
Clear the CO2 value table and invalidates all entries.
Print data in the CO2 values table.
Send a publish CO2 value command.
Set values in the tier label table.
Send the next get scheduled prices command.
Add a tier label to the specified tier label table.
Print the tier labels table.
Send a publish tier labels command.
Return the number of seconds until the next billing period event becomes active.
Refresh the billing period information if necessary. If the second billing period event is active, the first is inactivated and the array is re-sorted. If the force argument is set to true, the billing period will be forced to refresh.
Set values in the billing period table.
Send a publish billing period command.
Print data in the billing period table for the specified endpoint.
Print data in the consolidated bills table at the specified index.
Set values in the consolidated bills table.
Send a publish consolidated bill command.
Set values of the CPP event.
Send a publish CPP event command.
Print data in the CPP Event.
Send a publish credit payment command.
Set values in the credit payment table.
Send a publish currency conversion command.
Set values for the currency conversion command.
Set values in the tariff cancellation command.
Send a cancel tariff command.
Refresh tariff information.
Add a tariff table entry.
Add price matrix (raw).
Add price matrix.
Clean the block period table.
Send the next get scheduled prices command.
Update bindings.
Get seconds until next active price matrix event.
Refresh price matrix information.
Get seconds until next active block threshold event.
Refresh block threshold information.
Typedefs#
Macros#
API Documentation#
sl_zigbee_af_price_server_send_get_scheduled_prices#
void sl_zigbee_af_price_server_send_get_scheduled_prices (uint8_t endpoint)
Send the next get scheduled prices command.
N/A | endpoint | The endpoint in question. |
377
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_seconds_until_get_scheduled_prices_event#
uint32_t sl_zigbee_af_price_server_seconds_until_get_scheduled_prices_event (void )
Return the number of seconds until the next get scheduled prices command should be sent.
N/A |
Returns
The number of seconds until the next get scheduled prices command should be sent.
384
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_clear_price_table#
void sl_zigbee_af_price_clear_price_table (uint8_t endpoint)
Clear all prices in the price table.
N/A | endpoint | The endpoint in question. |
391
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_clear_tariff_table#
void sl_zigbee_af_price_clear_tariff_table (uint8_t endpoint)
Clear all tariffs in the tariff table.
N/A | endpoint | The endpoint in question. |
398
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_clear_price_matrix_table#
void sl_zigbee_af_price_clear_price_matrix_table (uint8_t endpoint)
Clear all price matrices in the price matrix table.
N/A | endpoint | The endpoint in question. |
405
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_clear_block_thresholds_table#
void sl_zigbee_af_price_clear_block_thresholds_table (uint8_t endpoint)
Clear all block thresholds in the block thresholds table.
N/A | endpoint | The endpoint in question. |
412
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_get_price_table_entry#
bool sl_zigbee_af_price_get_price_table_entry (uint8_t endpoint, uint8_t index, sl_zigbee_af_scheduled_price_t * price)
Get a price used by the price server plugin.
N/A | endpoint | The relevant endpoint. |
N/A | index | The index in the price table. |
N/A | price | The sl_zigbee_af_scheduled_price_t structure describing the price. |
This function gets a price and metadata that the plugin will send to clients. For "start now" prices that are current or scheduled, the duration is adjusted to reflect how many minutes remain for the price. Otherwise, the start time and duration of "start now" prices reflect the actual start and the original duration.
Returns
True if the price was found or false is the index is invalid.
428
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_block_period_add#
void sl_zigbee_af_price_server_block_period_add (uint8_t endpoint, uint32_t providerId, uint32_t issuerEventId, uint32_t blockPeriodStartTime, uint32_t blockPeriodDuration, uint8_t blockPeriodControl, uint8_t blockPeriodDurationType, uint32_t thresholdMultiplier, uint32_t thresholdDivisor, uint8_t tariffType, uint8_t tariffResolutionPeriod)
Set values in the block period table.
N/A | endpoint | The relevant endpoint. |
N/A | providerId | A unique identifier for the commodity provider. |
N/A | issuerEventId | The event ID of the block period data. |
N/A | blockPeriodStartTime | Time at which the block period data is valid. |
N/A | blockPeriodDuration | The block period duration. Units are specified by the blockPeriodDurationType. |
N/A | blockPeriodControl | Identifies additional control options for the block period command. |
N/A | blockPeriodDurationType | A bitmap that indicates the units used in the block period. |
N/A | thresholdMultiplier | A bitmap identifying the type of tariff published in this command. |
N/A | thresholdDivisor | The resolution period for the block tariff. |
N/A | tariffType | |
N/A | tariffResolutionPeriod |
446
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_block_period_pub#
void sl_zigbee_af_price_server_block_period_pub (uint16_t nodeId, uint8_t srcEndpoint, uint8_t dstEndpoint, uint8_t index)
Send a publish block period command.
N/A | nodeId | The destination address to which the command should be sent. |
N/A | srcEndpoint | The source endpoint used in the transmission. |
N/A | dstEndpoint | The destination endpoint used in the transmission. |
N/A | index | The index of the table whose data will be used in the command. |
461
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_block_period_print#
void sl_zigbee_af_price_server_block_period_print (uint8_t endpoint, uint8_t index)
Print data in the specified index of the block period table.
N/A | endpoint | The relevant endpoint. |
N/A | index | The index of the table whose index will be printed. |
470
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_seconds_until_block_period_event#
uint32_t sl_zigbee_af_price_server_seconds_until_block_period_event (uint8_t endpoint)
Return the number of seconds until the next block period event occurs.
N/A | endpoint | The relevant endpoint. |
Returns
Returns the number of seconds until the next block period event.
479
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_refresh_block_period#
void sl_zigbee_af_price_server_refresh_block_period (uint8_t endpoint, bool repeat)
Update block period attributes to match the current block period.
N/A | endpoint | The relevant endpoint. |
N/A | repeat | Indicates whether or not to try to repeat the current block period in the next block period. This is also controlled by a bit in the blockPeriodControl, saying whether or not the block period should repeat on expiry. |
490
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_get_tariff_table_entry#
bool sl_zigbee_af_price_get_tariff_table_entry (uint8_t endpoint, uint8_t index, sl_zigbee_af_price_common_info_t * info, sl_zigbee_af_scheduled_tariff_t * tariff)
Get a tariff used by the price server plugin.
N/A | endpoint | The relevant endpoint. |
N/A | index | The index in the tariff table. |
N/A | info | The sl_zigbee_af_price_common_info_t structure describing the tariff. |
N/A | tariff | The sl_zigbee_af_scheduled_tariff_t structure describing the tariff. |
This function gets a tariff and associated metadata that the plugin will send to clients.
Returns
True if the tariff was found.
504
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_get_price_matrix#
bool sl_zigbee_af_price_get_price_matrix (uint8_t endpoint, uint8_t index, sl_zigbee_af_price_common_info_t * info, sl_zigbee_af_scheduled_price_matrix_t * pm)
Retrieve a price matrix entry by index.
N/A | endpoint | The relevant endpoint. |
N/A | index | The index in the price matrix table. |
N/A | info | The sl_zigbee_af_scheduled_price_matrix_t structure describing the price matrix. |
N/A | pm |
This function gets a price matrix and associated metadata that the plugin will send to clients.
Returns
True if the price matrix was found.
520
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_get_block_thresholds_table_entry#
bool sl_zigbee_af_price_get_block_thresholds_table_entry (uint8_t endpoint, uint8_t index, sl_zigbee_af_scheduled_block_thresholds_t * bt)
Get the block thresholds used by the Price server plugin.
N/A | endpoint | The relevant endpoint. |
N/A | index | The index in the block thresholds table. |
N/A | bt | The sl_zigbee_af_scheduled_block_thresholds_t structure describing the block thresholds. |
This function gets the block thresholds and associated metadata that the plugin will send to clients.
Returns
True if the block thresholds was found.
536
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_get_tariff_by_issuer_tariff_id#
bool sl_zigbee_af_price_get_tariff_by_issuer_tariff_id (uint8_t endpoint, uint32_t issuerTariffId, sl_zigbee_af_price_common_info_t * info, sl_zigbee_af_scheduled_tariff_t * tariff)
Get a tariff by issuer tariff ID and endpoint.
N/A | endpoint | The relevant endpoint. |
N/A | issuerTariffId | The issuer tariff ID. |
N/A | info | The sl_zigbee_af_price_common_info_t structure describing the tariff. |
N/A | tariff | The sl_zigbee_af_scheduled_tariff_t structure describing the tariff. |
Returns
True if the tariff was found.
549
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_get_price_matrix_by_issuer_tariff_id#
bool sl_zigbee_af_price_get_price_matrix_by_issuer_tariff_id (uint8_t endpoint, uint32_t issuerTariffId, sl_zigbee_af_price_common_info_t * info, sl_zigbee_af_scheduled_price_matrix_t * pm)
Get a price matrix by issuer tariff ID and endpoint.
N/A | endpoint | The relevant endpoint. |
N/A | issuerTariffId | The issuer tariff ID. |
N/A | info | The sl_zigbee_af_scheduled_price_matrix_t structure describing the price matrix. |
N/A | pm |
Returns
True if the price matrix was found.
562
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_get_block_thresholds_by_issuer_tariff_id#
bool sl_zigbee_af_price_get_block_thresholds_by_issuer_tariff_id (uint8_t endpoint, uint32_t issuerTariffId, sl_zigbee_af_price_common_info_t * info, sl_zigbee_af_scheduled_block_thresholds_t * bt)
Get the block thresholds by issuer tariff ID and endpoint.
N/A | endpoint | The relevant endpoint. |
N/A | issuerTariffId | The issuer tariff ID. |
N/A | info | The sl_zigbee_af_scheduled_block_thresholds_t structure describing the block thresholds. |
N/A | bt |
Returns
True if the block thresholds were found.
575
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_set_price_table_entry#
bool sl_zigbee_af_price_set_price_table_entry (uint8_t endpoint, uint8_t index, const sl_zigbee_af_scheduled_price_t * price)
Set a price used by the price server plugin.
N/A | endpoint | The relevant endpoint. |
N/A | index | The index in the price table. |
N/A | price | The sl_zigbee_af_scheduled_price_t structure describing the price. If NULL, the price is removed from the server. |
This function sets a price and metadata that the plugin will send to clients. Setting the start time to zero instructs clients to start the price now. For "start now" prices, the plugin will automatically adjust the duration reported to clients based on the original start time of the price.
Returns
True if the price was set or removed or false is the index is invalid.
595
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_set_tariff_table_entry#
bool sl_zigbee_af_price_set_tariff_table_entry (uint8_t endpoint, uint8_t index, sl_zigbee_af_price_common_info_t * info, const sl_zigbee_af_scheduled_tariff_t * tariff)
Set a tariff used by the price server plugin.
N/A | endpoint | The relevant endpoint. |
N/A | index | The index in the tariff table. |
N/A | info | The sl_zigbee_af_scheduled_tariff_t structure describing the tariff. If NULL, the tariff is removed from the server. |
N/A | tariff |
This function sets a tariff and metadata that the plugin will send to clients.
Returns
True if the tariff was set or removed, or false if the index is invalid.
612
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_set_price_matrix#
bool sl_zigbee_af_price_set_price_matrix (uint8_t endpoint, uint8_t index, sl_zigbee_af_price_common_info_t * info, const sl_zigbee_af_scheduled_price_matrix_t * pm)
Set a price matrix entry by index.
N/A | endpoint | The relevant endpoint. |
N/A | index | The index in the price matrix table. |
N/A | info | The sl_zigbee_af_scheduled_price_matrix_t structure describing the price matrix. If NULL, the price matrix is removed from the server. |
N/A | pm |
This function sets a price matrix and metadata that the plugin will send to clients.
Returns
True if the price matrix was set or removed, or false if the index is invalid.
631
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_set_block_thresholds_table_entry#
bool sl_zigbee_af_price_set_block_thresholds_table_entry (uint8_t endpoint, uint8_t index, const sl_zigbee_af_price_common_info_t * info, const sl_zigbee_af_scheduled_block_thresholds_t * bt)
Set the block thresholds used by the price server plugin.
N/A | endpoint | The relevant endpoint. |
N/A | index | The index in the block thresholds table. |
N/A | info | The sl_zigbee_af_scheduled_block_thresholds_t structure describing the block thresholds. If NULL, the block thresholds entry is removed from the table. |
N/A | bt |
This function sets the block thresholds and metadata that the plugin will send to clients.
Returns
True if the block thresholds was set or removed, or false if the index is invalid.
650
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_get_current_price#
bool sl_zigbee_af_get_current_price (uint8_t endpoint, sl_zigbee_af_scheduled_price_t * price)
Get the current price used by the price server plugin.
N/A | endpoint | The relevant endpoint. |
N/A | price | The sl_zigbee_af_scheduled_price_t structure describing the price. |
This function gets the current price and metadata that the plugin will send to clients. For "start now" prices, the duration is adjusted to reflect how many minutes remain for the price. Otherwise, the start time and duration reflect the actual start and the original duration.
Returns
True if the current price was found or false is there is no current price.
668
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_find_free_price_index#
uint8_t sl_zigbee_af_price_find_free_price_index (uint8_t endpoint)
Find the first free index in the price table.
N/A | endpoint | The relevant endpoint. |
This function looks through the price table and determines whether the entry is in-use or scheduled to be in use. If not, it's considered "free" for the purposes of the user adding a new price entry to the server's table and the index is returned.
Returns
The index of the first free (unused/unscheduled) entry in the requested endpoint's price table, or ZCL_PRICE_INVALID_INDEX if no available entry could be found.
683
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_print#
void sl_zigbee_af_price_print (const sl_zigbee_af_scheduled_price_t * price)
function to print price
N/A | price |
689
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_print_price_table#
void sl_zigbee_af_price_print_price_table (uint8_t endpoint)
N/A | endpoint | relevant endpoint |
Print the price table.
696
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_print_tariff#
void sl_zigbee_af_price_print_tariff (const sl_zigbee_af_price_common_info_t * info, const sl_zigbee_af_scheduled_tariff_t * tariff)
N/A | info | pointer to the common info struct |
N/A | tariff | pointer to the scheduled tariff struct |
Print tariff.
704
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_print_tariff_table#
void sl_zigbee_af_price_print_tariff_table (uint8_t endpoint)
Print tariff table.
N/A | endpoint | relevant endpoint |
712
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_print_price_matrix#
void sl_zigbee_af_price_print_price_matrix (uint8_t endpoint, const sl_zigbee_af_price_common_info_t * info, const sl_zigbee_af_scheduled_price_matrix_t * pm)
Print price matrix.
N/A | endpoint | relevant endpoint |
N/A | info | pointer to common info struct |
N/A | pm | pointer to scheduled price matrix struct |
721
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_print_price_matrix_table#
void sl_zigbee_af_price_print_price_matrix_table (uint8_t endpoint)
Print price matrix table.
N/A | endpoint | relevant endpoint |
730
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_print_block_thresholds#
void sl_zigbee_af_price_print_block_thresholds (uint8_t endpoint, const sl_zigbee_af_price_common_info_t * info, const sl_zigbee_af_scheduled_block_thresholds_t * bt)
Print block thresholds.
N/A | endpoint | relevant endpoint |
N/A | info | pointer to common info struct |
N/A | bt | pointer to block threshold struct |
739
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_print_block_thresholds_table#
void sl_zigbee_af_price_print_block_thresholds_table (uint8_t endpoint)
Print block threshold table.
N/A | endpoint | relevant endpoint |
748
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_publish_price_message#
void sl_zigbee_af_price_server_publish_price_message (sl_802154_short_addr_t nodeId, uint8_t srcEndpoint, uint8_t dstEndpoint, uint8_t priceIndex)
Publish price message.
N/A | nodeId | |
N/A | srcEndpoint | |
N/A | dstEndpoint | |
N/A | priceIndex |
758
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_conversion_factor_add#
sl_zigbee_af_status_t sl_zigbee_af_price_server_conversion_factor_add (uint8_t endpoint, uint32_t issuerEventId, uint32_t startTime, uint32_t conversionFactor, uint8_t conversionFactorTrailingDigit)
Set parameters in the conversion factors table.
N/A | endpoint | The endpoint in question. |
N/A | issuerEventId | The event ID of the conversion factor data. |
N/A | startTime | The time when the conversion factor data is valid. |
N/A | conversionFactor | Accounts for changes in the volume of gas based on temperature and pressure. |
N/A | conversionFactorTrailingDigit | Determines where the decimal point is located in the conversion factor. |
774
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_conversion_factor_clear#
void sl_zigbee_af_price_server_conversion_factor_clear (uint8_t endpoint)
Clear the conversion factors table and invalidates all entries.
N/A | endpoint | The endpoint in question. |
785
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_conversion_factor_pub#
void sl_zigbee_af_price_server_conversion_factor_pub (uint8_t tableIndex, sl_802154_short_addr_t dstAddr, uint8_t srcEndpoint, uint8_t dstEndpoint)
Send a Publish Conversion Factor command using data at the specified table index.
N/A | tableIndex | The index of the conversion factor table whose data should be used in the publish conversion factor command. |
N/A | dstAddr | The destination address to which the command should be sent. |
N/A | srcEndpoint | The source endpoint used in the transmission. |
N/A | dstEndpoint | The destination endpoint used in the transmission. |
798
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_seconds_until_conversion_factor_event#
uint32_t sl_zigbee_af_price_server_seconds_until_conversion_factor_event (uint8_t endpoint)
Return the number of seconds until the next conversion factor event becomes active.
N/A | endpoint | The endpoint in question |
Returns
The number of seconds until the next conversion factor event becomes active.
812
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_refresh_conversion_factor#
void sl_zigbee_af_price_server_refresh_conversion_factor (uint8_t endpoint)
Refresh the conversion factor information if necessary. If the second conversion factor event is active, the first is inactivated and the array is re-sorted.
N/A | endpoint | The endpoint in question. |
822
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_calorific_value_add#
sl_zigbee_af_status_t sl_zigbee_af_price_server_calorific_value_add (uint8_t endpoint, uint32_t issuerEventId, uint32_t startTime, uint32_t calorificValue, uint8_t calorificValueUnit, uint8_t calorificValueTrailingDigit)
Set values in the calorific value table.
N/A | endpoint | The endpoint in question @issuerEventId The event ID of the calorific value data. @startTime The time at which the calorific value data is valid. @calorificValue The amount of heat generated when a given mass of fuel is burned. @calorificValueTrailingDigit Determines where the decimal point is located in the calorific value. |
N/A | issuerEventId | |
N/A | startTime | |
N/A | calorificValue | |
N/A | calorificValueUnit | |
N/A | calorificValueTrailingDigit |
836
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_seconds_until_calorific_value_event#
uint32_t sl_zigbee_af_price_server_seconds_until_calorific_value_event (uint8_t endpoint)
Return the number of seconds until the next calorific value event will become active.
N/A | endpoint | The endpoint in question |
Returns
The number of seconds until the next calorific value event becomes active.
850
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_refresh_calorific_value#
void sl_zigbee_af_price_server_refresh_calorific_value (uint8_t endpoint)
Refresh the caloric value information if necessary. If the second calorific value event is active, the first is inactivated and the array is re-sorted.
N/A | endpoint | The endpoint in question. |
860
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_calorific_value_clear#
void sl_zigbee_af_price_server_calorific_value_clear (uint8_t endpoint)
Clear the calorific value table and invalidates all entries.
N/A | endpoint | The endpoint in question. |
868
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_publish_tariff_message#
void sl_zigbee_af_price_server_publish_tariff_message (sl_802154_short_addr_t nodeId, uint8_t srcEndpoint, uint8_t dstEndpoint, uint8_t tariffIndex)
Send a publish tariff information command.
N/A | nodeId | The destination address to which the command should be sent. |
N/A | srcEndpoint | The source endpoint used in the transmission. |
N/A | dstEndpoint | The destination endpoint used in the transmission. |
N/A | tariffIndex | The index of the tariff table whose data will be used in the Publish Tariff Information command. |
880
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_print_conversion_table#
void sl_zigbee_af_print_conversion_table (uint8_t endpoint)
Print data in the conversion factor table.
N/A | endpoint | The endpoint in question. |
891
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_print_calorific_values_table#
void sl_zigbee_af_print_calorific_values_table (uint8_t endpoint)
Print data in the calorific values table.
N/A | endpoint | The endpoint in question. |
899
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_seconds_until_co2_value_event#
uint32_t sl_zigbee_af_price_server_seconds_until_co2_value_event (uint8_t endpoint)
Return the number of seconds until the next CO2 value event becomes active.
N/A | endpoint | The endpoint in question. |
Returns
The number of seconds until the next CO2 value event becomes active.
909
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_refresh_co2_value#
void sl_zigbee_af_price_server_refresh_co2_value (uint8_t endpoint)
Refresh the CO2 value information if necessary. If the second CO2 value event is active, the first is inactivated and the array is re-sorted.
N/A | endpoint | The endpoint in question. |
919
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_co2_value_add#
void sl_zigbee_af_price_server_co2_value_add (uint8_t endpoint, uint32_t issuerEventId, uint32_t startTime, uint32_t providerId, uint8_t tariffType, uint32_t co2Value, uint8_t co2ValueUnit, uint8_t co2ValueTrailingDigit)
Set values in the CO2 value table.
N/A | endpoint | The endpoint in question. |
N/A | issuerEventId | The event ID of the CO2 value table data. |
N/A | startTime | The time at which the CO2 value data is valid. |
N/A | providerId | A unique identifier for the commodity provider. |
N/A | tariffType | Bitmap identifying the type of tariff published in this command. |
N/A | co2Value | Used to calculate the amount of carbon dioxide produced from energy use. |
N/A | co2ValueUnit | An enumeration which defines the unit of the co2Value attribute. |
N/A | co2ValueTrailingDigit | Determines where the decimal point is located in the co2Value. |
938
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_co2_value_clear#
void sl_zigbee_af_price_server_co2_value_clear (uint8_t endpoint)
Clear the CO2 value table and invalidates all entries.
N/A | endpoint | The endpoint in question. |
953
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_print_co2_values_table#
void sl_zigbee_af_print_co2_values_table (uint8_t endpoint)
Print data in the CO2 values table.
N/A | endpoint | The endpoint in question. |
961
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_co2_label_pub#
void sl_zigbee_af_price_server_co2_label_pub (uint16_t nodeId, uint8_t srcEndpoint, uint8_t dstEndpoint, uint8_t index)
Send a publish CO2 value command.
N/A | nodeId | The destination address to which the command should be sent. |
N/A | srcEndpoint | The source endpoint used in the transmission. |
N/A | dstEndpoint | The destination endpoint used in the transmission. |
N/A | index | The index of the CO2 values table whose data will be used in the command. |
972
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_tier_label_set#
void sl_zigbee_af_price_server_tier_label_set (uint8_t endpoint, uint8_t index, uint8_t valid, uint32_t providerId, uint32_t issuerEventId, uint32_t issuerTariffId, uint8_t tierId, uint8_t * tierLabel)
Set values in the tier label table.
N/A | endpoint | The endpoint in question. |
N/A | index | The index of the billing period table whose data will be modified. |
N/A | valid | Indicates if data at this index is valid or not. |
N/A | providerId | A unique identifier for the commodity provider. |
N/A | issuerEventId | The event ID of the tier labels table data. |
N/A | issuerTariffId | A unique identifier that identifies which tariff the labels apply to. |
N/A | tierId | The tier number that associated tier label applies to. |
N/A | tierLabel | A character string descriptor for this tier. |
990
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_print_print_tier_labels_table#
void sl_zigbee_af_print_print_tier_labels_table (void )
Send the next get scheduled prices command.
N/A | The endpoint in question. |
998
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_tier_label_add_label#
void sl_zigbee_af_price_server_tier_label_add_label (uint8_t endpoint, uint32_t issuerTariffId, uint8_t tierId, uint8_t * tierLabel)
Add a tier label to the specified tier label table.
N/A | endpoint | The endpoint in question. |
N/A | issuerTariffId | A unique identifier that identifies which tariff the labels apply to. |
N/A | tierId | The tier number that associated tier label applies to. |
N/A | tierLabel | Character string descriptor for this tier. |
1009
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_print_tier_labels_table#
void sl_zigbee_af_print_tier_labels_table (uint8_t endpoint)
Print the tier labels table.
N/A | endpoint | The endpoint in question. |
1020
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_tier_label_pub#
void sl_zigbee_af_price_server_tier_label_pub (uint16_t nodeId, uint8_t srcEndpoint, uint8_t dstEndpoint, uint8_t index)
Send a publish tier labels command.
N/A | nodeId | The destination address to which the command should be sent. |
N/A | srcEndpoint | The source endpoint used in the transmission. |
N/A | dstEndpoint | The destination endpoint used in the transmission. |
N/A | index | The index of the tier labels table whose data will be used in the Publish Tier Labels command. |
1032
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_seconds_until_billing_period_event#
uint32_t sl_zigbee_af_price_server_seconds_until_billing_period_event (uint8_t endpoint)
Return the number of seconds until the next billing period event becomes active.
N/A | endpoint | The endpoint in question. |
Returns
The number of seconds until the next billing period event becomes active.
1042
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_refresh_billing_period#
void sl_zigbee_af_price_server_refresh_billing_period (uint8_t endpoint, bool force)
Refresh the billing period information if necessary. If the second billing period event is active, the first is inactivated and the array is re-sorted. If the force argument is set to true, the billing period will be forced to refresh.
N/A | endpoint | The endpoint in question. |
N/A | force | Whether or not the billing period should be forced to refresh. |
1054
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_billing_period_add#
sl_status_t sl_zigbee_af_price_server_billing_period_add (uint8_t endpoint, uint32_t startTime, uint32_t issuerEventId, uint32_t providerId, uint32_t billingPeriodDuration, uint8_t billingPeriodDurationType, uint8_t tariffType)
Set values in the billing period table.
N/A | endpoint | The endpoint in question. |
N/A | startTime | The time at which the billing period data is valid. |
N/A | issuerEventId | The event ID of the billing period data. |
N/A | providerId | A unique identifier for the commodity provider. |
N/A | billingPeriodDuration | The billing period duration. Units are specified by the billingPeriodDurationType. |
N/A | billingPeriodDurationType | A bitmap that indicates the units used in the billing period. |
N/A | tariffType | Bitmap identifying the type of tariff published in this command. |
1070
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_billing_period_pub#
void sl_zigbee_af_price_server_billing_period_pub (uint16_t nodeId, uint8_t srcEndpoint, uint8_t dstEndpoint, uint8_t index)
Send a publish billing period command.
N/A | nodeId | The destination address to which the command should be sent. |
N/A | srcEndpoint | The source endpoint used in the transmission. |
N/A | dstEndpoint | The destination endpoint used in the transmission. |
N/A | index | The index of the table whose data will be used in the command. |
1086
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_print_billing_period_table#
void sl_zigbee_af_print_billing_period_table (uint8_t endpoint)
Print data in the billing period table for the specified endpoint.
N/A | endpoint | The endpoint in question. |
1095
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_print_consolidated_bill_table_entry#
void sl_zigbee_af_print_consolidated_bill_table_entry (uint8_t endpoint, uint8_t index)
Print data in the consolidated bills table at the specified index.
N/A | endpoint | The endpoint in question. |
N/A | index | The index of the consolidated bills table whose data should be printed. |
1104
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_consolidated_bill_add#
void sl_zigbee_af_price_server_consolidated_bill_add (uint8_t endpoint, uint32_t startTime, uint32_t issuerEventId, uint32_t providerId, uint32_t billingPeriodDuration, uint8_t billingPeriodDurationType, uint8_t tariffType, uint32_t consolidatedBill, uint16_t currency, uint8_t billTrailingDigit)
Set values in the consolidated bills table.
N/A | endpoint | The endpoint in question. |
N/A | startTime | The time at which the consolidated bills data is valid. |
N/A | issuerEventId | The event ID of the consolidated bills data. |
N/A | providerId | A unique identifier for the commodity provider. |
N/A | billingPeriodDuration | The billing period duration. Units are specified by the billingPeriodDurationType. |
N/A | billingPeriodDurationType | A bitmap that indicates the units used in the billing period. |
N/A | tariffType | Bitmap identifying the type of tariff published in this command. |
N/A | consolidatedBill | The consolidated bill value for the specified billing period. |
N/A | currency | The currency used in the consolidatedBill field. |
N/A | billTrailingDigit | Determines where the decimal point is located in the consolidatedBill field. |
1123
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_consolidated_bill_pub#
void sl_zigbee_af_price_server_consolidated_bill_pub (uint16_t nodeId, uint8_t srcEndpoint, uint8_t dstEndpoint, uint8_t index)
Send a publish consolidated bill command.
N/A | nodeId | The destination address to which the command should be sent. |
N/A | srcEndpoint | The source endpoint used in the transmission. |
N/A | dstEndpoint | The destination endpoint used in the transmission. |
N/A | index | The index of the table whose data will be used in the command. |
1138
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_cpp_event_set#
void sl_zigbee_af_price_server_cpp_event_set (uint8_t endpoint, uint8_t valid, uint32_t providerId, uint32_t issuerEventId, uint32_t startTime, uint16_t durationInMinutes, uint8_t tariffType, uint8_t cppPriceTier, uint8_t cppAuth)
Set values of the CPP event.
N/A | endpoint | The endpoint in question. |
N/A | valid | Indicates if the CPP Event data is valid or not. |
N/A | providerId | A unique identifier for the commodity provider. |
N/A | issuerEventId | The event ID of the CPP Event. |
N/A | startTime | The time at which the CPP Event data is valid. |
N/A | durationInMinutes | Defines the duration of the CPP Event. |
N/A | tariffType | Bitmap identifying the type of tariff published in this command. |
N/A | cppPriceTier | Indicates which CPP price tier should be used for the event. |
N/A | cppAuth | The status of the CPP event. |
1154
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_cpp_event_pub#
void sl_zigbee_af_price_server_cpp_event_pub (uint16_t nodeId, uint8_t srcEndpoint, uint8_t dstEndpoint)
Send a publish CPP event command.
N/A | nodeId | The destination address to which the command should be sent. |
N/A | srcEndpoint | The source endpoint used in the transmission. |
N/A | dstEndpoint | The destination endpoint used in the transmission. |
1165
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_cpp_event_print#
void sl_zigbee_af_price_server_cpp_event_print (uint8_t endpoint)
Print data in the CPP Event.
N/A | endpoint | The endpoint in question. |
1173
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_credit_payment_pub#
void sl_zigbee_af_price_server_credit_payment_pub (uint16_t nodeId, uint8_t srcEndpoint, uint8_t dstEndpoint, uint8_t index)
Send a publish credit payment command.
N/A | nodeId | The destination address to which the command should be sent. |
N/A | srcEndpoint | The source endpoint used in the transmission. |
N/A | dstEndpoint | The destination endpoint used in the transmission. |
N/A | index | The index of the table whose data will be used in the command. |
1184
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_credit_payment_set#
void sl_zigbee_af_price_server_credit_payment_set (uint8_t endpoint, uint8_t index, uint8_t valid, uint32_t providerId, uint32_t issuerEventId, uint32_t creditPaymentDueDate, uint32_t creditPaymentOverdueAmount, uint8_t creditPaymentStatus, uint32_t creditPayment, uint32_t creditPaymentDate, uint8_t * creditPaymentRef)
Set values in the credit payment table.
N/A | endpoint | The endpoint in question. |
N/A | index | The index of the credit payment table whose data will be modified. |
N/A | valid | Indicates if data at this index is valid or not. |
N/A | providerId | A unique identifier for the commodity provider. |
N/A | issuerEventId | The event ID of the credit payment data. |
N/A | creditPaymentDueDate | The time the next credit payment is due. |
N/A | creditPaymentOverdueAmount | The current amount that is overdue from the customer. |
N/A | creditPaymentStatus | Indicates the current credit payment status. |
N/A | creditPayment | The amount of the last credit payment. |
N/A | creditPaymentDate | The time at which the last credit payment was made. |
N/A | creditPaymentRef | A string used to denote the last credit payment reference used by the energy supplier. |
1203
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_currency_conversion_pub#
void sl_zigbee_af_price_server_currency_conversion_pub (uint16_t nodeId, uint8_t srcEndpoint, uint8_t dstEndpoint)
Send a publish currency conversion command.
N/A | nodeId | The destination address to which the command should be sent. |
N/A | srcEndpoint | The source endpoint used in the transmission. |
N/A | dstEndpoint | The destination endpoint used in the transmission. |
1219
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_currency_conversion_set#
void sl_zigbee_af_price_server_currency_conversion_set (uint8_t endpoint, uint8_t valid, uint32_t providerId, uint32_t issuerEventId, uint32_t startTime, uint16_t oldCurrency, uint16_t newCurrency, uint32_t conversionFactor, uint8_t conversionFactorTrailingDigit, uint32_t currencyChangeControlFlags)
Set values for the currency conversion command.
N/A | endpoint | The endpoint in question. |
N/A | valid | Indicates if the currency conversion data is valid or not. |
N/A | providerId | A unique identifier for the commodity provider. |
N/A | issuerEventId | The event ID of the currency conversion data. |
N/A | startTime | The time at which the currency conversion data is valid. |
N/A | oldCurrency | Information about the old unit of currency. |
N/A | newCurrency | Information about the new unit of currency. |
N/A | conversionFactor | Accounts for changes in the volume of gas based on temperature and pressure. |
N/A | conversionFactorTrailingDigit | Determines where the decimal point is located in the conversion factor. |
N/A | currencyChangeControlFlags | Denotes functions that are required to be carried out by the client. |
1236
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_tariff_cancellation_set#
void sl_zigbee_af_price_server_tariff_cancellation_set (uint8_t endpoint, uint8_t valid, uint32_t providerId, uint32_t issuerTariffId, uint8_t tariffType)
Set values in the tariff cancellation command.
N/A | endpoint | The endpoint in question. |
N/A | valid | Indicates if the tariff cancellation command is valid or not. |
N/A | providerId | A unique identifier for the commodity provider. |
N/A | issuerTariffId | Unique identifier that identifies which tariff should be canceled. |
N/A | tariffType | A bitmap identifying the type of tariff to be canceled. |
1252
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_tariff_cancellation_pub#
void sl_zigbee_af_price_server_tariff_cancellation_pub (uint16_t nodeId, uint8_t srcEndpoint, uint8_t dstEndpoint)
Send a cancel tariff command.
N/A | nodeId | The destination address to which the command should be sent. |
N/A | srcEndpoint | The source endpoint used in the transmission. |
N/A | dstEndpoint | The destination endpoint used in the transmission. |
1263
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_seconds_until_tariff_info_event#
uint32_t sl_zigbee_af_price_server_seconds_until_tariff_info_event (uint8_t endpoint)
N/A | endpoint | relevant endpoint |
Get seconds until the next tariff info event.
Returns
unit32_t seconds until next tariff info event
1272
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_refresh_tariff_information#
void sl_zigbee_af_price_server_refresh_tariff_information (uint8_t endpoint)
Refresh tariff information.
N/A | endpoint | relevant endpoint |
1279
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_add_tariff_table_entry#
bool sl_zigbee_af_price_add_tariff_table_entry (uint8_t endpoint, sl_zigbee_af_price_common_info_t * info, const sl_zigbee_af_scheduled_tariff_t * curTariff)
Add a tariff table entry.
N/A | endpoint | relevant endpoint |
N/A | info | pointer to common info struct |
N/A | curTariff | pointer to scheduled tariff struct |
Returns
bool true is success
1290
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_add_price_matrix_raw#
bool sl_zigbee_af_price_add_price_matrix_raw (uint8_t endpoint, uint32_t providerId, uint32_t issuerEventId, uint32_t startTime, uint32_t issuerTariffId, uint8_t commandIndex, uint8_t numberOfCommands, uint8_t subPayloadControl, uint8_t * payload)
Add price matrix (raw).
N/A | endpoint | relevant endpoint |
N/A | providerId | |
N/A | issuerEventId | |
N/A | startTime | |
N/A | issuerTariffId | |
N/A | commandIndex | |
N/A | numberOfCommands | |
N/A | subPayloadControl | |
N/A | payload |
Returns
bool true is success
1307
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_add_price_matrix#
bool sl_zigbee_af_price_add_price_matrix (uint8_t endpoint, sl_zigbee_af_price_common_info_t * info, sl_zigbee_af_scheduled_price_matrix_t * pm)
Add price matrix.
N/A | endpoint | relevant endpoint |
N/A | info | pointer to the common info struct |
N/A | pm | pointer to the scheduled price matrix struct |
Returns
bool true is success
1326
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_add_block_thresholds_table_entry#
bool sl_zigbee_af_price_add_block_thresholds_table_entry (uint8_t endpoint, uint32_t providerId, uint32_t issuerEventId, uint32_t startTime, uint32_t issuerTariffId, uint8_t commandIndex, uint8_t numberOfCommands, uint8_t subpayloadControl, uint8_t * payload)
N/A | endpoint | relevant endpoint |
N/A | providerId | |
N/A | issuerEventId | |
N/A | startTime | |
N/A | issuerTariffId | |
N/A | commandIndex | |
N/A | numberOfCommands | |
N/A | subpayloadControl | |
N/A | payload |
Add a table entry for block threshold table.
Returns
bool true is success
1343
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_clear_block_period_table#
void sl_zigbee_af_price_clear_block_period_table (uint8_t endpoint)
Clean the block period table.
N/A | endpoint | relevant endpoint |
1358
of file app/framework/plugin/price-server/price-server.h
sendValidCmdEntries#
void sendValidCmdEntries (uint8_t cmdId, uint8_t endpoint, uint8_t * validEntries, uint8_t validEntryCount)
Send the next get scheduled prices command.
N/A | cmdId | The endpoint in question. |
N/A | endpoint | |
N/A | validEntries | |
N/A | validEntryCount |
1359
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_price_update_bindings#
void sl_zigbee_af_price_server_price_update_bindings (void )
Update bindings.
N/A |
1367
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_seconds_until_active_price_matrix_event#
uint32_t sl_zigbee_af_price_server_seconds_until_active_price_matrix_event (uint8_t endpoint)
Get seconds until next active price matrix event.
N/A | endpoint | relevant endpoint |
Returns
uint32_t seconds until next price matrix event
1376
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_refresh_price_matrix_information#
void sl_zigbee_af_price_server_refresh_price_matrix_information (uint8_t endpoint)
Refresh price matrix information.
N/A | endpoint | relevant endpoint |
1383
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_seconds_until_active_block_thresholds_event#
uint32_t sl_zigbee_af_price_server_seconds_until_active_block_thresholds_event (uint8_t endpoint)
Get seconds until next active block threshold event.
N/A | endpoint | relevant endpoint |
Returns
uint32_t seconds until next block threshold event
1392
of file app/framework/plugin/price-server/price-server.h
sl_zigbee_af_price_server_refresh_block_thresholds_information#
void sl_zigbee_af_price_server_refresh_block_thresholds_information (uint8_t endpoint)
Refresh block threshold information.
N/A | endpoint | relevant endpoint |
1399
of file app/framework/plugin/price-server/price-server.h
Typedef Documentation#
sli_zigbee_af_price_block_threshold#
typedef uint8_t sli_zigbee_af_price_block_threshold[ZCL_PRICE_CLUSTER_BLOCK_THRESHOLDS_PAYLOAD_SIZE] [ZCL_PRICE_CLUSTER_BLOCK_THRESHOLDS_PAYLOAD_SIZE]
293
of file app/framework/plugin/price-server/price-server.h
Variable Documentation#
priceServerInfo#
sl_zigbee_af_price_server_info_t priceServerInfo
365
of file app/framework/plugin/price-server/price-server.h
Macro Definition Documentation#
SL_ZIGBEE_AF_PLUGIN_PRICE_SERVER_PRICE_TABLE_SIZE#
#define SL_ZIGBEE_AF_PLUGIN_PRICE_SERVER_PRICE_TABLE_SIZEValue:
(5)
48
of file app/framework/plugin/price-server/price-server.h
SL_ZIGBEE_AF_PLUGIN_PRICE_SERVER_TARIFF_TABLE_SIZE#
#define SL_ZIGBEE_AF_PLUGIN_PRICE_SERVER_TARIFF_TABLE_SIZEValue:
(2)
52
of file app/framework/plugin/price-server/price-server.h
SL_ZIGBEE_AF_PLUGIN_PRICE_SERVER_BILLING_PERIOD_TABLE_SIZE#
#define SL_ZIGBEE_AF_PLUGIN_PRICE_SERVER_BILLING_PERIOD_TABLE_SIZEValue:
(2)
56
of file app/framework/plugin/price-server/price-server.h
SL_ZIGBEE_AF_PLUGIN_PRICE_SERVER_MAX_TIERS_PER_TARIFF#
#define SL_ZIGBEE_AF_PLUGIN_PRICE_SERVER_MAX_TIERS_PER_TARIFFValue:
(2)
60
of file app/framework/plugin/price-server/price-server.h
SL_ZIGBEE_AF_PLUGIN_PRICE_SERVER_TIER_LABELS_TABLE_SIZE#
#define SL_ZIGBEE_AF_PLUGIN_PRICE_SERVER_TIER_LABELS_TABLE_SIZEValue:
(2)
64
of file app/framework/plugin/price-server/price-server.h
SL_ZIGBEE_AF_PLUGIN_PRICE_SERVER_BLOCK_PERIOD_TABLE_SIZE#
#define SL_ZIGBEE_AF_PLUGIN_PRICE_SERVER_BLOCK_PERIOD_TABLE_SIZEValue:
(2)
68
of file app/framework/plugin/price-server/price-server.h
SL_ZIGBEE_AF_PLUGIN_PRICE_SERVER_CONSOLIDATED_BILL_TABLE_SIZE#
#define SL_ZIGBEE_AF_PLUGIN_PRICE_SERVER_CONSOLIDATED_BILL_TABLE_SIZEValue:
(5)
72
of file app/framework/plugin/price-server/price-server.h
SL_ZIGBEE_AF_PLUGIN_PRICE_SERVER_CREDIT_PAYMENT_TABLE_SIZE#
#define SL_ZIGBEE_AF_PLUGIN_PRICE_SERVER_CREDIT_PAYMENT_TABLE_SIZEValue:
(5)
76
of file app/framework/plugin/price-server/price-server.h
SL_ZIGBEE_AF_PLUGIN_PRICE_SERVER_CALORIFIC_VALUE_TABLE_SIZE#
#define SL_ZIGBEE_AF_PLUGIN_PRICE_SERVER_CALORIFIC_VALUE_TABLE_SIZEValue:
(2)
80
of file app/framework/plugin/price-server/price-server.h
SL_ZIGBEE_AF_PLUGIN_PRICE_SERVER_CO2_VALUE_TABLE_SIZE#
#define SL_ZIGBEE_AF_PLUGIN_PRICE_SERVER_CO2_VALUE_TABLE_SIZEValue:
(2)
84
of file app/framework/plugin/price-server/price-server.h
SL_ZIGBEE_AF_PLUGIN_PRICE_SERVER_CONVERSION_FACTOR_TABLE_SIZE#
#define SL_ZIGBEE_AF_PLUGIN_PRICE_SERVER_CONVERSION_FACTOR_TABLE_SIZEValue:
(2)
88
of file app/framework/plugin/price-server/price-server.h
ZCL_PRICE_CLUSTER_BLOCK_THRESHOLDS_PAYLOAD_SIZE#
#define ZCL_PRICE_CLUSTER_BLOCK_THRESHOLDS_PAYLOAD_SIZEValue:
(6u)
91
of file app/framework/plugin/price-server/price-server.h
ZCL_PRICE_CLUSTER_PRICE_MATRIX_SUBPAYLOAD_BLOCK_SIZE#
#define ZCL_PRICE_CLUSTER_PRICE_MATRIX_SUBPAYLOAD_BLOCK_SIZEValue:
(5u)
92
of file app/framework/plugin/price-server/price-server.h
fieldLength#
#define fieldLengthValue:
(field)
94
of file app/framework/plugin/price-server/price-server.h
ZCL_PRICE_CLUSTER_MAX_TOU_BLOCKS#
#define ZCL_PRICE_CLUSTER_MAX_TOU_BLOCKSValue:
(15u)
97
of file app/framework/plugin/price-server/price-server.h
ZCL_PRICE_CLUSTER_MAX_TOU_BLOCK_TIERS#
#define ZCL_PRICE_CLUSTER_MAX_TOU_BLOCK_TIERSValue:
(15u)
98
of file app/framework/plugin/price-server/price-server.h
ZCL_PRICE_CLUSTER_MAX_TOU_TIERS#
#define ZCL_PRICE_CLUSTER_MAX_TOU_TIERSValue:
(48u)
99
of file app/framework/plugin/price-server/price-server.h
ZCL_PRICE_CLUSTER_PRICE_MATRIX_SUB_PAYLOAD_ENTRY_SIZE#
#define ZCL_PRICE_CLUSTER_PRICE_MATRIX_SUB_PAYLOAD_ENTRY_SIZEValue:
(5u)
100
of file app/framework/plugin/price-server/price-server.h
CURRENT#
#define CURRENTValue:
BIT(1)
104
of file app/framework/plugin/price-server/price-server.h
FUTURE#
#define FUTUREValue:
BIT(2)
105
of file app/framework/plugin/price-server/price-server.h
PUBLISHED#
#define PUBLISHEDValue:
BIT(3)
106
of file app/framework/plugin/price-server/price-server.h
TARIFF_TYPE_MASK#
#define TARIFF_TYPE_MASKValue:
(0x0Fu)
108
of file app/framework/plugin/price-server/price-server.h
CHARGING_SCHEME_MASK#
#define CHARGING_SCHEME_MASKValue:
(0xF0u)
109
of file app/framework/plugin/price-server/price-server.h
tariffIsCurrent#
#define tariffIsCurrentValue:
(tariff)
111
of file app/framework/plugin/price-server/price-server.h
tariffIsFuture#
#define tariffIsFutureValue:
(tariff)
112
of file app/framework/plugin/price-server/price-server.h
tariffIsPublished#
#define tariffIsPublishedValue:
(tariff)
113
of file app/framework/plugin/price-server/price-server.h
priceMatrixIsCurrent#
#define priceMatrixIsCurrentValue:
(pm)
114
of file app/framework/plugin/price-server/price-server.h
priceMatrixIsFuture#
#define priceMatrixIsFutureValue:
(pm)
115
of file app/framework/plugin/price-server/price-server.h
priceMatrixIsPublished#
#define priceMatrixIsPublishedValue:
(pm)
116
of file app/framework/plugin/price-server/price-server.h
blockThresholdsIsCurrent#
#define blockThresholdsIsCurrentValue:
(bt)
117
of file app/framework/plugin/price-server/price-server.h
blockThresholdsIsFuture#
#define blockThresholdsIsFutureValue:
(bt)
118
of file app/framework/plugin/price-server/price-server.h
blockThresholdsIsPublished#
#define blockThresholdsIsPublishedValue:
(bt)
119
of file app/framework/plugin/price-server/price-server.h
CREDIT_PAYMENT_REF_STRING_LEN#
#define CREDIT_PAYMENT_REF_STRING_LENValue:
(20u)
177
of file app/framework/plugin/price-server/price-server.h
TIER_LABEL_SIZE#
#define TIER_LABEL_SIZEValue:
(12u)
223
of file app/framework/plugin/price-server/price-server.h