ZPS_eAplAfApsdeDataReq
ZPS\_teStatus ZPS\_eAplAfApsdeDataReq\(
PDUM\_thAPduInstance hAPduInst,
ZPS\_tsAfProfileDataReq *psProfileDataReq,
uint8 *pu8SeqNum);
Description
This function submits a request to send data to a remote node, with no restrictions on the type of transmission, destination address, destination application profile, destination cluster and destination endpoint number - these destination parameters do not need to be known to the stack or defined in the ZPS configuration. In this sense, this is most general of the Data Transfer functions.
The destination details and type of transmission are specified in the function call in a ZPS_tsAfProfileDataReq
structure (see Section 8.2.3.4).
The data is sent in an Application Protocol Data Unit (APDU) instance. This instance can be allocated using the PDUM function PDUM_hAPduAllocateAPduInstance() and then written to using PDUM_u16APduInstanceWriteNBO().
If the APDU size is larger than the maximum packet size allowed on the network, this function call fails (and returns ZPS_E_ADSU_TOO_LONG
). To send large APDUs, use the function ZPS_eAplAfUnicastAckDataReq(), which automatically implements data fragmentation (if required).
Once the sent data has reached the first hop node in the route to its destination, a ZPS_EVENT_APS_DATA_CONFIRM
event is generated on the local node.
Parent topic:ZPS_eAplAfApsdeDataReq
Parameters
hAPduInst: Handle of APDU instance to be sent.
*psProfileDataReq: Pointer to structure containing the details for the transmission (see Section 8.2.3.4).
*pu8SeqNum: Pointer to location to receive sequence number assigned to data transfer request. If not required, set to NULL.
Parent topic:ZPS_eAplAfApsdeDataReq
Returns
ZPS_E_SUCCESS
APS return codes, listed and described in Section 11.2.2
NWK return codes, listed and described in Section 11.2.3
MAC return codes, listed and described in Section 11.2.4
Parent topic:ZPS_eAplAfApsdeDataReq
Parent topic:Data Transfer functions