[Z-Stack] sends the data function "afStatus_t AF_DataRequest" Parameter Interpretation, z-stackafstatus_t
Z-Stack sends data by calling the function at the application layer
Void SampleApp_SendFlashMessage (uint16 flashTime)
Complete. flash Time is the data sent. This function is called in the application.
AfStatus_t AF_DataRequest (afAddrType_t * dstAddr, endPointDesc_t * srcEP, uint16 cID, uint16 len, uint8 * buf, uint8 * transID, uint8 options, uint8 radius)
Function to send data. If you are familiar with the meaning of each parameter, you can use the sending function to send your own data flexibly.
AfAddrType_t * dstAddr: target address
EndPointDesc_t * srcEP: Source endpoint
Uint16 cID: Cluster ID
Uint16 len: the length of the sent data
Uint8 * buf: sending data buffer
Uint8 * transID: task id
Uint8 options: valid bit mask sending Option
Uint8 radius: Number of transfer hops, usually set to AF_DEFAULT_RADIUS