| Reply | « Previous Thread | Next Thread » |
|
Hi laa-laa
Can u help me with the coding? I keep getting errors. I wish to get the service name or description, and check it to see if it is the desired name (desired service). I hope that just doing a simple string comparison is enough to check if the service name is one which i'm looking for, but whatever i code it doesn't work. I'm not sure how to code the the AttributeRequestResult part of it. Suppose im looking for the service name "F2F". Im asking this because the BTP2P example shows a very confusing parsing method for the protocol descriptor list attr which it requests from the remote device, which i don't understand. I'm hoping there is asimpler method for other attributes. void CBTServiceSearcher::NextRecordRequestCompleteL( TInt aError, TSdpServRecordHandle aHandle, TInt aTotalRecordsCount ) { //......etcetc...... CSdpAttrIdMatchList* matchList = CSdpAttrIdMatchList::NewL(); CleanupStack::PushL(matchList); matchList->AddL(KSdpAttrIdBasePrimaryLanguage+KSdpAttrIdOffsetServiceName); CleanupStack::PopAndDestroy(); iAgent->AttributeRequestL(aHandle, *matchList); } void CBTServiceSearcher::AttributeRequestResult( TSdpServRecordHandle aHandle, TSdpAttributeID aAttrID, CSdpAttrValue* aAttrValue ) { // ????? } pls help! - aDvo - |
|
Sorry. I haven't worked with Bluetooth SDP on Symbian, and I don't want to dig into it now. I have enough problems already (that I get paid to solve).
Generally, you should not trust on names which are not unique. Use the identifier numbers. See bluetooth.org for assigned numbers. Lauri |
|
Thanks laa laa
Are you refering to the application UID? Does anyone know how i may request the UID of an application advertising a service from a remote device? As far as i've read i don't think the application UID is associated with the SDP database ...right? |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|