mirror of
https://github.com/espressif/openthread.git
synced 2026-08-11 13:17:48 +00:00
Fix otSendMacDataRequest API (#1521)
* Fix otSendMacDataRequest API * Add otSendMacDataRequest declaration to API headers * Move otSendMacDataRequest from thread to link API * Update otSendMacDataRequest to otLinkSendDataRequest
This commit is contained in:
@@ -1366,7 +1366,7 @@ otIsDiscoverInProgress(
|
||||
OTAPI
|
||||
ThreadError
|
||||
OTCALL
|
||||
otSendMacDataRequest(
|
||||
otLinkSendDataRequest(
|
||||
_In_ otInstance *aInstance
|
||||
)
|
||||
{
|
||||
|
||||
@@ -124,6 +124,11 @@ void otLinkSetPollPeriod(otInstance *aInstance, uint32_t aPollPeriod)
|
||||
aInstance->mThreadNetif.GetMeshForwarder().SetAssignPollPeriod(aPollPeriod);
|
||||
}
|
||||
|
||||
ThreadError otLinkSendDataRequest(otInstance *aInstance)
|
||||
{
|
||||
return aInstance->mThreadNetif.GetMeshForwarder().SendMacDataRequest();
|
||||
}
|
||||
|
||||
otShortAddress otLinkGetShortAddress(otInstance *aInstance)
|
||||
{
|
||||
return aInstance->mThreadNetif.GetMac().GetShortAddress();
|
||||
|
||||
@@ -648,11 +648,6 @@ bool otThreadIsDiscoverInProgress(otInstance *aInstance)
|
||||
return aInstance->mThreadNetif.GetMle().IsDiscoverInProgress();
|
||||
}
|
||||
|
||||
ThreadError otSendMacDataRequest(otInstance *aInstance)
|
||||
{
|
||||
return aInstance->mThreadNetif.GetMeshForwarder().SendMacDataRequest();
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user