Meter Mirror Server#

API and Callbacks for the Meter Mirror Cluster Server Component.

A component for mirroring attributes of a sleepy meter in a Smart Energy network. The device is expected to be a configured as mirror server on as many endpoints as are allocated as meters. Those endpoints must be contiguous.

Modules#

Meter Mirror

API#

bool
emberAfPluginMeterMirrorGetEui64ByEndpoint(uint8_t endpoint, EmberEUI64 returnEui64)

Get EUI64 by endpoint.

bool

Mirror used status.

bool
emberAfPluginMeterMirrorGetEndpointByEui64(EmberEUI64 eui64, uint8_t *returnEndpoint)

Get endpoint by EUI64.

uint16_t
emberAfPluginMeterMirrorRequestMirror(EmberEUI64 requestingDeviceIeeeAddress)

Request mirror.

uint16_t
emberAfPluginMeterMirrorRemoveMirror(EmberEUI64 requestingDeviceIeeeAddress)

Remove mirror.

Variables#

EmberEUI64

Macros#

#define
EM_AF_APPLICATION_MANUFACTURER_CODE EMBER_AF_MANUFACTURER_CODE
#define

API Documentation#

emberAfPluginMeterMirrorGetEui64ByEndpoint#

bool emberAfPluginMeterMirrorGetEui64ByEndpoint (uint8_t endpoint, EmberEUI64 returnEui64)

Get EUI64 by endpoint.

Parameters
N/Aendpoint

Ver.: always

N/AreturnEui64

Ver.: always

Returns

  • bool true is success


Definition at line 62 of file app/framework/plugin/meter-mirror/meter-mirror.h

emberAfPluginMeterMirrorIsMirrorUsed#

bool emberAfPluginMeterMirrorIsMirrorUsed (uint8_t endpoint)

Mirror used status.

Parameters
N/Aendpoint

Ver.: always

Returns

  • bool Mirror used state


Definition at line 72 of file app/framework/plugin/meter-mirror/meter-mirror.h

emberAfPluginMeterMirrorGetEndpointByEui64#

bool emberAfPluginMeterMirrorGetEndpointByEui64 (EmberEUI64 eui64, uint8_t * returnEndpoint)

Get endpoint by EUI64.

Parameters
N/Aeui64

Ver.: always

N/AreturnEndpoint

Ver.: always

Returns

  • bool true is success


Definition at line 82 of file app/framework/plugin/meter-mirror/meter-mirror.h

emberAfPluginMeterMirrorRequestMirror#

uint16_t emberAfPluginMeterMirrorRequestMirror (EmberEUI64 requestingDeviceIeeeAddress)

Request mirror.

Parameters
N/ArequestingDeviceIeeeAddress

Ver.: always

Returns

  • uint16_t Endpoint if valid


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

emberAfPluginMeterMirrorRemoveMirror#

uint16_t emberAfPluginMeterMirrorRemoveMirror (EmberEUI64 requestingDeviceIeeeAddress)

Remove mirror.

Parameters
N/ArequestingDeviceIeeeAddress

Returns

  • uint16_t endpoint if success


Definition at line 101 of file app/framework/plugin/meter-mirror/meter-mirror.h

Variable Documentation#

nullEui64#

EmberEUI64 nullEui64

Definition at line 43 of file app/framework/plugin/meter-mirror/meter-mirror.h

Macro Definition Documentation#

EM_AF_APPLICATION_MANUFACTURER_CODE#

#define EM_AF_APPLICATION_MANUFACTURER_CODE
Value:
EMBER_AF_MANUFACTURER_CODE

Definition at line 41 of file app/framework/plugin/meter-mirror/meter-mirror.h

EM_AF_MIRROR_ENDPOINT_END#

#define EM_AF_MIRROR_ENDPOINT_END
Value:
(EMBER_AF_PLUGIN_METER_MIRROR_ENDPOINT_START \
+ EMBER_AF_PLUGIN_METER_MIRROR_MAX_MIRRORS)

Definition at line 45 of file app/framework/plugin/meter-mirror/meter-mirror.h