Simple Metering Server#
API and Callbacks for the Simple Metering Cluster Server Component.
This is a test implementation of the simple metering server. This component should only be used for testing but is helpful to test devices that require inter-operation with a working meter. It supports the required current summation delivered attribute (0x0000), but optionally the following attributes as well if they are selected in the project: current tier 1 summation delivered (0x0100), battery life remaining (0x0201), hours in operation (0x0202), and instantaneous demand (0x0400).
API#
Process notification flags.
Process notification flags.
Process notification flags.
API Documentation#
sl_zigbee_af_simple_metering_cluster_read_attributes_response_cb#
void sl_zigbee_af_simple_metering_cluster_read_attributes_response_cb (sl_zigbee_af_cluster_id_t clusterId, uint8_t * buffer, uint16_t bufLen)
Process notification flags.
N/A | clusterId | Ver.: always |
N/A | buffer | Ver.: always |
N/A | bufLen |
This function is called by the metering server plugin when any of the Notification Attribute Set attributes are read or reported by the metering client.
51
of file app/framework/plugin/simple-metering-server/simple-metering-server.h
sl_zigbee_af_simple_metering_server_start_sampling#
uint16_t sl_zigbee_af_simple_metering_server_start_sampling (uint16_t requestedSampleId, uint32_t issuerEventId, uint32_t startSamplingTime, uint8_t sampleType, uint16_t sampleRequestInterval, uint16_t maxNumberOfSamples, uint8_t endpoint)
Process notification flags.
N/A | requestedSampleId | Ver.: always |
N/A | issuerEventId | Ver.: always |
N/A | startSamplingTime | |
N/A | sampleType | |
N/A | sampleRequestInterval | |
N/A | maxNumberOfSamples | |
N/A | endpoint |
This function is called by the metering server plugin when any of the Notification Attribute Set attributes are read or reported by the metering client.
54
of file app/framework/plugin/simple-metering-server/simple-metering-server.h
sl_zigbee_af_simple_metering_server_process_notification_flags_cb#
void sl_zigbee_af_simple_metering_server_process_notification_flags_cb (uint16_t attributeId, uint32_t attributeValue)
Process notification flags.
N/A | attributeId | Ver.: always |
N/A | attributeValue | Ver.: always |
This function is called by the metering server plugin when any of the Notification Attribute Set attributes are read or reported by the metering client.
70
of file app/framework/plugin/simple-metering-server/simple-metering-server.h