Meter Snapshot Server#

Callbacks for Meter Snapshot Server Component.

Callbacks#

void
sl_zigbee_af_meter_snapshot_server_schedule_snapshot_cb(uint8_t srcEndpoint, uint8_t dstEndpoint, sl_802154_short_addr_t dest, uint8_t *snapshotPayload, uint8_t *responsePayload)

Schedule Snapshot.

uint32_t
sl_zigbee_af_meter_snapshot_server_take_snapshot_cb(uint8_t endpoint, uint32_t snapshotCause, uint8_t *snapshotConfirmation)

Take Snapshot.

void
sl_zigbee_af_meter_snapshot_server_get_snapshot_cb(uint8_t srcEndpoint, uint8_t dstEndpoint, sl_802154_short_addr_t dest, uint8_t *snapshotCriteria)

Get Snapshot.

Callbacks Documentation#

sl_zigbee_af_meter_snapshot_server_schedule_snapshot_cb#

void sl_zigbee_af_meter_snapshot_server_schedule_snapshot_cb (uint8_t srcEndpoint, uint8_t dstEndpoint, sl_802154_short_addr_t dest, uint8_t * snapshotPayload, uint8_t * responsePayload)

Schedule Snapshot.

Parameters
N/AsrcEndpoint

Ver.: always

N/AdstEndpoint

Ver.: always

N/Adest

Ver.: always

N/AsnapshotPayload

Ver.: always

N/AresponsePayload

Ver.: always

This function is called by the Meter Snapshot server plugin whenever a ScheduleSnapshot command is received. A plugin implementing backhaul functionality for the snapshot mechanism should proceed to schedule the snapshot as required.


Definition at line 60 of file app/framework/plugin/meter-snapshot-server/meter-snapshot-server.h

sl_zigbee_af_meter_snapshot_server_take_snapshot_cb#

uint32_t sl_zigbee_af_meter_snapshot_server_take_snapshot_cb (uint8_t endpoint, uint32_t snapshotCause, uint8_t * snapshotConfirmation)

Take Snapshot.

Parameters
N/Aendpoint

Ver.: always

N/AsnapshotCause

Ver.: always

N/AsnapshotConfirmation

Ver.: always

This function is called by the Meter Snapshot server plugin whenever a TakeSnapshot command is received. A plugin implementing backhaul functionality for the snapshot mechanism should proceed to manually take a snapshot as required. If for some reason the snapshot could not be taken, this should be reflected in the snapshotConfirmation argument.


Definition at line 77 of file app/framework/plugin/meter-snapshot-server/meter-snapshot-server.h

sl_zigbee_af_meter_snapshot_server_get_snapshot_cb#

void sl_zigbee_af_meter_snapshot_server_get_snapshot_cb (uint8_t srcEndpoint, uint8_t dstEndpoint, sl_802154_short_addr_t dest, uint8_t * snapshotCriteria)

Get Snapshot.

Parameters
N/AsrcEndpoint

Ver.: always

N/AdstEndpoint

Ver.: always

N/Adest

Ver.: always

N/AsnapshotCriteria

Ver.: always

This function is called by the Meter Snapshot server plugin whenever a GetSnapshot command is received. A plugin implementing backhaul functionality for the snapshot mechanism should proceed to retrieve the snapshot and send a PublishSnapshot command to the requesting client.


Definition at line 92 of file app/framework/plugin/meter-snapshot-server/meter-snapshot-server.h