Device Management Server#
API and Callbacks for the Device Management Cluster Server Component.
This component implements the server-side functionality of the Smart Energy 1.2 Device Management cluster.
API#
Set tenancy.
Get tenancy.
Set supplier for the device.
Get supplier for the device.
Set global data device information.
Set device site ID.
Get device site ID.
Set device CIN.
Get device CIN.
Set device password.
Get device password.
Device management server print.
Update device site ID.
Set device provider ID.
Set device issuer event ID.
Set device tariff type.
Publish the change of tenancy.
Publish the change of supplier.
Set device pending updates.
Get device pending updates.
Update CIN for the device.
Send the request new password response.
API Documentation#
emberAfPluginDeviceManagementSetTenancy#
bool emberAfPluginDeviceManagementSetTenancy (EmberAfDeviceManagementTenancy * tenancy, bool validateOptionalFields)
Set tenancy.
Type | Direction | Argument Name | Description |
---|---|---|---|
EmberAfDeviceManagementTenancy * | N/A | tenancy | Ver.: always |
bool | N/A | validateOptionalFields | Ver.: always |
Returns
bool true is success
emberAfPluginDeviceManagementGetTenancy#
bool emberAfPluginDeviceManagementGetTenancy (EmberAfDeviceManagementTenancy * tenancy)
Get tenancy.
Type | Direction | Argument Name | Description |
---|---|---|---|
EmberAfDeviceManagementTenancy * | N/A | tenancy | tenancy Ver.: always |
Returns
bool true is success
emberAfPluginDeviceManagementSetSupplier#
bool emberAfPluginDeviceManagementSetSupplier (uint8_t endpoint, EmberAfDeviceManagementSupplier * supplier)
Set supplier for the device.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint8_t | N/A | endpoint | Ver.: always |
EmberAfDeviceManagementSupplier * | N/A | supplier | Ver.: always |
Returns
bool true is success
emberAfPluginDeviceManagementGetSupplier#
bool emberAfPluginDeviceManagementGetSupplier (EmberAfDeviceManagementSupplier * supplier)
Get supplier for the device.
Type | Direction | Argument Name | Description |
---|---|---|---|
EmberAfDeviceManagementSupplier * | N/A | supplier | Ver.: always |
Returns
bool true is success
emberAfPluginDeviceManagementSetInfoGlobalData#
bool emberAfPluginDeviceManagementSetInfoGlobalData (uint32_t providerId, uint32_t issuerEventId, uint8_t tariffType)
Set global data device information.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | N/A | providerId | Ver.: always |
uint32_t | N/A | issuerEventId | Ver.: always |
uint8_t | N/A | tariffType | Ver.: always |
Returns
bool true is success
emberAfPluginDeviceManagementSetSiteId#
bool emberAfPluginDeviceManagementSetSiteId (EmberAfDeviceManagementSiteId * siteId)
Set device site ID.
Type | Direction | Argument Name | Description |
---|---|---|---|
EmberAfDeviceManagementSiteId * | N/A | siteId | Ver.: always |
Returns
bool true is success
emberAfPluginDeviceManagementGetSiteId#
bool emberAfPluginDeviceManagementGetSiteId (EmberAfDeviceManagementSiteId * siteId)
Get device site ID.
Type | Direction | Argument Name | Description |
---|---|---|---|
EmberAfDeviceManagementSiteId * | N/A | siteId | Ver.: always |
Returns
bool true is success
emberAfPluginDeviceManagementSetCIN#
bool emberAfPluginDeviceManagementSetCIN (EmberAfDeviceManagementCIN * cin)
Set device CIN.
Type | Direction | Argument Name | Description |
---|---|---|---|
EmberAfDeviceManagementCIN * | N/A | cin | Ver.: always |
Returns
bool true is success
emberAfPluginDeviceManagementGetCIN#
bool emberAfPluginDeviceManagementGetCIN (EmberAfDeviceManagementCIN * cin)
Get device CIN.
Type | Direction | Argument Name | Description |
---|---|---|---|
EmberAfDeviceManagementCIN * | N/A | cin | Ver.: always |
Returns
bool true is success
emberAfPluginDeviceManagementSetPassword#
bool emberAfPluginDeviceManagementSetPassword (EmberAfDeviceManagementPassword * password)
Set device password.
Type | Direction | Argument Name | Description |
---|---|---|---|
EmberAfDeviceManagementPassword * | N/A | password | Ver.: always |
Returns
bool true is success
emberAfPluginDeviceManagementGetPassword#
bool emberAfPluginDeviceManagementGetPassword (EmberAfDeviceManagementPassword * password, uint8_t passwordType)
Get device password.
Type | Direction | Argument Name | Description |
---|---|---|---|
EmberAfDeviceManagementPassword * | N/A | password | Ver.: always |
uint8_t | N/A | passwordType |
Returns
bool true is success
emberAfDeviceManagementServerPrint#
void emberAfDeviceManagementServerPrint (void )
Device management server print.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
emberAfDeviceManagementClusterUpdateSiteId#
bool emberAfDeviceManagementClusterUpdateSiteId (EmberNodeId dstAddr, uint8_t srcEndpoint, uint8_t dstEndpoint)
Update device site ID.
Type | Direction | Argument Name | Description |
---|---|---|---|
EmberNodeId | N/A | dstAddr | Ver.: always |
uint8_t | N/A | srcEndpoint | Ver.: always |
uint8_t | N/A | dstEndpoint | Ver.: always |
Returns
bool true is success
emberAfPluginDeviceManagementSetProviderId#
bool emberAfPluginDeviceManagementSetProviderId (uint32_t providerId)
Set device provider ID.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | N/A | providerId | Ver.: always |
Returns
bool true is success
emberAfPluginDeviceManagementSetIssuerEventId#
bool emberAfPluginDeviceManagementSetIssuerEventId (uint32_t issuerEventId)
Set device issuer event ID.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | N/A | issuerEventId |
Returns
bool true is success
emberAfPluginDeviceManagementSetTariffType#
bool emberAfPluginDeviceManagementSetTariffType (EmberAfTariffType tariffType)
Set device tariff type.
Type | Direction | Argument Name | Description |
---|---|---|---|
EmberAfTariffType | N/A | tariffType | Ver.: always |
Returns
bool true is success
emberAfDeviceManagementClusterPublishChangeOfTenancy#
bool emberAfDeviceManagementClusterPublishChangeOfTenancy (EmberNodeId dstAddr, uint8_t srcEndpoint, uint8_t dstEndpoint)
Publish the change of tenancy.
Type | Direction | Argument Name | Description |
---|---|---|---|
EmberNodeId | N/A | dstAddr | Ver.: always |
uint8_t | N/A | srcEndpoint | Ver.: always |
uint8_t | N/A | dstEndpoint | Ver.: always |
Returns
bool true is success
emberAfDeviceManagementClusterPublishChangeOfSupplier#
bool emberAfDeviceManagementClusterPublishChangeOfSupplier (EmberNodeId dstAddr, uint8_t srcEndpoint, uint8_t dstEndpoint)
Publish the change of supplier.
Type | Direction | Argument Name | Description |
---|---|---|---|
EmberNodeId | N/A | dstAddr | Ver.: always |
uint8_t | N/A | srcEndpoint | Ver.: always |
uint8_t | N/A | dstEndpoint | Ver.: always |
Returns
bool true is success
emberAfDeviceManagementClusterSetPendingUpdates#
void emberAfDeviceManagementClusterSetPendingUpdates (EmberAfDeviceManagementChangePendingFlags pendingUpdatesMask)
Set device pending updates.
Type | Direction | Argument Name | Description |
---|---|---|---|
EmberAfDeviceManagementChangePendingFlags | N/A | pendingUpdatesMask | Ver.: always |
emberAfDeviceManagementClusterGetPendingUpdates#
void emberAfDeviceManagementClusterGetPendingUpdates (EmberAfDeviceManagementChangePendingFlags * pendingUpdatesMask)
Get device pending updates.
Type | Direction | Argument Name | Description |
---|---|---|---|
EmberAfDeviceManagementChangePendingFlags * | N/A | pendingUpdatesMask | Ver.: always |
emberAfDeviceManagementClusterUpdateCIN#
bool emberAfDeviceManagementClusterUpdateCIN (EmberNodeId dstAddr, uint8_t srcEndpoint, uint8_t dstEndpoint)
Update CIN for the device.
Type | Direction | Argument Name | Description |
---|---|---|---|
EmberNodeId | N/A | dstAddr | Ver.: always |
uint8_t | N/A | srcEndpoint | Ver.: always |
uint8_t | N/A | dstEndpoint | Ver.: always |
Returns
bool true is success
emberAfDeviceManagementClusterSendRequestNewPasswordResponse#
bool emberAfDeviceManagementClusterSendRequestNewPasswordResponse (uint8_t passwordType, EmberNodeId dstAddr, uint8_t srcEndpoint, uint8_t dstEndpoint)
Send the request new password response.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint8_t | N/A | passwordType | Ver.: always |
EmberNodeId | N/A | dstAddr | Ver.: always |
uint8_t | N/A | srcEndpoint | Ver.: always |
uint8_t | N/A | dstEndpoint | Ver.: always |
Returns
bool true is success