663
社区成员




您好,善学坊教程中关于数据发送的例程中,都是发送一个字节。我现在想发送多个字节,是需要分包发送,还是只需要1次就可以发完。
afStatus_t AF_DataRequest( afAddrType_t *dstAddr, endPointDesc_t *srcEP,
uint16 cID, uint16 len, uint8 *buf, uint8 *transID,
uint8 options, uint8 radius )
这个函数中len是发送数据的长度,数据buf是一个指针。应该可以是发送数组的,例如data[]。我定义了一个A10_config_para[4],函数如下,编译会报错,请问是写的有问题么
AF_DataRequest( &dstAddr, &GenericApp_epDesc,
CLUSTER_A20_REPORT_A10,
4,
&A10_config_para,
&GenericApp_TransID,
AF_DISCV_ROUTE, AF_DEFAULT_RADIUS );