[Z-Stack] sends the data function "afStatus_t AF_DataRequest" Parameter Interpretation, z-stackafstatus_t

Source: Internet
Author: User

[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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.