what is the usage of this built-in function? all i can do is just scan the area around and put some info into a package. can i do a L2CAP connection here? how to extract the info in the package?
RNotifier?
i am using RNotifier to prompt the user to select a BT device. then it stores the selected device information in either TBTDeviceResponseParams or TBTDeviceSelectionParams. the information includes the BDAddr. how can i store the BDAddr in TBTDevAddr?
RNotifier not;
User::LeaveIfError(not.Connect());
TBTDeviceSelectionParams selectionFilter;
TUUID targetServiceClass(0x2345);
selectionFilter.SetUUID(targetServiceClass);
TBTDeviceSelectionParamsPckg pckg(selectionFilter);
TBTDeviceResponseParams result;
TBTDeviceResponseParamsPckg resultPckg(result);
TRequestStatus status;
not.StartNotifierAndGetResponse(status, DeviceSelectionNotifierUid, pckg, resultPckg);
RSocket socket;
TInquirySockAddr InquirySockAddr;
TBTDevAddr addr (result.BDAddr);
inquirysocketaddr.SetBTAddr(addr);
one more thing, how can i get the socket address using RSocket? i need to do a L2CAP connection
socket.LocalName(inquirysocketaddr);