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 managerment server print.
Update device site ID.
Set device provider ID.
Set device issuer event ID.
Set device tarrif 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.
N/A | tenancy | Ver.: always |
N/A | validateOptionalFields | Ver.: always |
Returns
bool true is success
48
of file app/framework/plugin/device-management-server/device-management-server.h
emberAfPluginDeviceManagementGetTenancy#
bool emberAfPluginDeviceManagementGetTenancy (EmberAfDeviceManagementTenancy * tenancy)
Get tenancy.
N/A | tenancy | tenancy Ver.: always |
Returns
bool true is success
58
of file app/framework/plugin/device-management-server/device-management-server.h
emberAfPluginDeviceManagementSetSupplier#
bool emberAfPluginDeviceManagementSetSupplier (uint8_t endpoint, EmberAfDeviceManagementSupplier * supplier)
Set supplier for the device.
N/A | endpoint | Ver.: always |
N/A | supplier | Ver.: always |
Returns
bool true is success
68
of file app/framework/plugin/device-management-server/device-management-server.h
emberAfPluginDeviceManagementGetSupplier#
bool emberAfPluginDeviceManagementGetSupplier (EmberAfDeviceManagementSupplier * supplier)
Get supplier for the device.
N/A | supplier | Ver.: always |
Returns
bool true is success
77
of file app/framework/plugin/device-management-server/device-management-server.h
emberAfPluginDeviceManagementSetInfoGlobalData#
bool emberAfPluginDeviceManagementSetInfoGlobalData (uint32_t providerId, uint32_t issuerEventId, uint8_t tariffType)
Set global data device information.
N/A | providerId | Ver.: always |
N/A | issuerEventId | Ver.: always |
N/A | tariffType | Ver.: always |
Returns
bool true is success
88
of file app/framework/plugin/device-management-server/device-management-server.h
emberAfPluginDeviceManagementSetSiteId#
bool emberAfPluginDeviceManagementSetSiteId (EmberAfDeviceManagementSiteId * siteId)
Set device site ID.
N/A | siteId | Ver.: always |
Returns
bool true is success
99
of file app/framework/plugin/device-management-server/device-management-server.h
emberAfPluginDeviceManagementGetSiteId#
bool emberAfPluginDeviceManagementGetSiteId (EmberAfDeviceManagementSiteId * siteId)
Get device site ID.
N/A | siteId | Ver.: always |
Returns
bool true is success
108
of file app/framework/plugin/device-management-server/device-management-server.h
emberAfPluginDeviceManagementSetCIN#
bool emberAfPluginDeviceManagementSetCIN (EmberAfDeviceManagementCIN * cin)
Set device CIN.
N/A | cin | Ver.: always |
Returns
bool true is success
117
of file app/framework/plugin/device-management-server/device-management-server.h
emberAfPluginDeviceManagementGetCIN#
bool emberAfPluginDeviceManagementGetCIN (EmberAfDeviceManagementCIN * cin)
Get device CIN.
N/A | cin | Ver.: always |
Returns
bool true is success
126
of file app/framework/plugin/device-management-server/device-management-server.h
emberAfPluginDeviceManagementSetPassword#
bool emberAfPluginDeviceManagementSetPassword (EmberAfDeviceManagementPassword * password)
Set device password.
N/A | password | Ver.: always |
Returns
bool true is success
135
of file app/framework/plugin/device-management-server/device-management-server.h
emberAfPluginDeviceManagementGetPassword#
bool emberAfPluginDeviceManagementGetPassword (EmberAfDeviceManagementPassword * password, uint8_t passwordType)
Get device password.
N/A | password | Ver.: always |
N/A | passwordType |
Returns
bool true is success
144
of file app/framework/plugin/device-management-server/device-management-server.h
emberAfDeviceManagementServerPrint#
void emberAfDeviceManagementServerPrint (void )
Device managerment server print.
N/A |
150
of file app/framework/plugin/device-management-server/device-management-server.h
emberAfDeviceManagementClusterUpdateSiteId#
bool emberAfDeviceManagementClusterUpdateSiteId (EmberNodeId dstAddr, uint8_t srcEndpoint, uint8_t dstEndpoint)
Update device site ID.
N/A | dstAddr | Ver.: always |
N/A | srcEndpoint | Ver.: always |
N/A | dstEndpoint | Ver.: always |
Returns
bool true is success
161
of file app/framework/plugin/device-management-server/device-management-server.h
emberAfPluginDeviceManagementSetProviderId#
bool emberAfPluginDeviceManagementSetProviderId (uint32_t providerId)
Set device provider ID.
N/A | providerId | Ver.: always |
Returns
bool true is success
172
of file app/framework/plugin/device-management-server/device-management-server.h
emberAfPluginDeviceManagementSetIssuerEventId#
bool emberAfPluginDeviceManagementSetIssuerEventId (uint32_t issuerEventId)
Set device issuer event ID.
N/A | issuerEventId |
Returns
bool true is success
181
of file app/framework/plugin/device-management-server/device-management-server.h
emberAfPluginDeviceManagementSetTariffType#
bool emberAfPluginDeviceManagementSetTariffType (EmberAfTariffType tariffType)
Set device tarrif type.
N/A | tariffType | Ver.: always |
Returns
bool true is success
190
of file app/framework/plugin/device-management-server/device-management-server.h
emberAfDeviceManagementClusterPublishChangeOfTenancy#
bool emberAfDeviceManagementClusterPublishChangeOfTenancy (EmberNodeId dstAddr, uint8_t srcEndpoint, uint8_t dstEndpoint)
Publish the change of tenancy.
N/A | dstAddr | Ver.: always |
N/A | srcEndpoint | Ver.: always |
N/A | dstEndpoint | Ver.: always |
Returns
bool true is success
201
of file app/framework/plugin/device-management-server/device-management-server.h
emberAfDeviceManagementClusterPublishChangeOfSupplier#
bool emberAfDeviceManagementClusterPublishChangeOfSupplier (EmberNodeId dstAddr, uint8_t srcEndpoint, uint8_t dstEndpoint)
Publish the change of supplier.
N/A | dstAddr | Ver.: always |
N/A | srcEndpoint | Ver.: always |
N/A | dstEndpoint | Ver.: always |
Returns
bool true is success
214
of file app/framework/plugin/device-management-server/device-management-server.h
emberAfDeviceManagementClusterSetPendingUpdates#
void emberAfDeviceManagementClusterSetPendingUpdates (EmberAfDeviceManagementChangePendingFlags pendingUpdatesMask)
Set device pending updates.
N/A | pendingUpdatesMask | Ver.: always |
223
of file app/framework/plugin/device-management-server/device-management-server.h
emberAfDeviceManagementClusterGetPendingUpdates#
void emberAfDeviceManagementClusterGetPendingUpdates (EmberAfDeviceManagementChangePendingFlags * pendingUpdatesMask)
Get device pending updates.
N/A | pendingUpdatesMask | Ver.: always |
230
of file app/framework/plugin/device-management-server/device-management-server.h
emberAfDeviceManagementClusterUpdateCIN#
bool emberAfDeviceManagementClusterUpdateCIN (EmberNodeId dstAddr, uint8_t srcEndpoint, uint8_t dstEndpoint)
Update CIN for the device.
N/A | dstAddr | Ver.: always |
N/A | srcEndpoint | Ver.: always |
N/A | dstEndpoint | Ver.: always |
Returns
bool true is success
241
of file app/framework/plugin/device-management-server/device-management-server.h
emberAfDeviceManagementClusterSendRequestNewPasswordResponse#
bool emberAfDeviceManagementClusterSendRequestNewPasswordResponse (uint8_t passwordType, EmberNodeId dstAddr, uint8_t srcEndpoint, uint8_t dstEndpoint)
Send the request new password response.
N/A | passwordType | Ver.: always |
N/A | dstAddr | Ver.: always |
N/A | srcEndpoint | Ver.: always |
N/A | dstEndpoint | Ver.: always |
Returns
bool true is success
255
of file app/framework/plugin/device-management-server/device-management-server.h