tsSM_GetProfileRequestCommand

This stucture contains the details of a ‘Get Profile’ request (from a cluster client). It is included in the structure tsSM_CallBackMessage when an E_CLD_SM_SERVER_RECEIVED_COMMAND event containing the command E_CLD_SM_GET_PROFILE is generated on the cluster server.

typedef struct
{
    teSM_IntervalChannel eIntervalChannel;
    uint8 u8NumberOfPeriods;
    uint8 u8SourceEndPoint;
    uint8 u8DestinationEndPoint;
    uint32 u32EndTime;
    tsZCL_Address sSourceAddress;
}tsSM_GetProfileRequestCommand;

where:

  • eIntervalChannel is a value indicating the required consumption data:

    • E_CLD_SM_CONSUMPTION_RECEIVED - units from customer

    • E_CLD_SM_CONSUMPTION_DELIVERED - units to customer

  • u8NumberOfPeriods is the number of consumption intervals for which data is being requested

  • u8SourceEndPoint is the number of the source endpoint of the request on the client

  • u8DestinationEndPoint is the number of the destination endpoint of the request on the server

  • u32EndTime is the end-time for which consumption data is being requested - the most recent consumption data will be reported which has an end-time equal to or earlier than this end-time (a zero value will result in the most recent consumption data)

  • sSourceAddress is a structure containing the source address of the request - that is, the address of the requesting client (the structure is described in Section 6.1.4)

Parent topic:Structures