My reading of the specs is that this function finalizes the async operation and the function should set the returned lenght:
ulData is the length in bytes of the data.
But given that its just a ulData, not a pointer, the module can not report back the length. Or do I miss something or misunderstand the API?
In any case, to be consistent with the existing API, the parameter should really be a ulDataLen.