Skip to content

Commit

Permalink
Merge pull request #306 from badzz/write_attr_ack
Browse files Browse the repository at this point in the history
Make writeattribute respect the address mode
  • Loading branch information
fairecasoimeme authored Jun 23, 2020
2 parents ad89a30 + 6335bfc commit c2142ee
Showing 1 changed file with 20 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3970,14 +3970,26 @@ PUBLIC teZCL_Status APP_eSendWriteAttributesRequest ( uint8 u8So
0,
pu8SeqApsNum );
}else{
eReturnCode = ZPS_eAplAfUnicastAckDataReq ( myPDUM_thAPduInstance,
u16ClusterId,
u8SourceEndPointId,
u8DestinationEndPointId,
psDestinationAddress->uAddress.u16DestinationAddress,
ZPS_E_APL_AF_SECURE_NWK,
0,
pu8SeqApsNum );
if (psDestinationAddress->eAddressMode == E_ZCL_AM_SHORT_NO_ACK)
{
eReturnCode = ZPS_eAplAfUnicastDataReq( myPDUM_thAPduInstance,
u16ClusterId,
u8SourceEndPointId,
u8DestinationEndPointId,
psDestinationAddress->uAddress.u16DestinationAddress,
ZPS_E_APL_AF_SECURE_NWK,
0,
pu8SeqApsNum );
} else {
eReturnCode = ZPS_eAplAfUnicastAckDataReq ( myPDUM_thAPduInstance,
u16ClusterId,
u8SourceEndPointId,
u8DestinationEndPointId,
psDestinationAddress->uAddress.u16DestinationAddress,
ZPS_E_APL_AF_SECURE_NWK,
0,
pu8SeqApsNum );
}
}
return(eReturnCode);
}
Expand Down

0 comments on commit c2142ee

Please sign in to comment.