Stefan Damm - 2008-08-25

Hello,

I wanted to use the finddevice method but it seems that it is not working. At least on S60 3rd edition.

I always get -2 General Error when calling it. There seems to be a problem in the symbian code because I tracked the error to these lines in _lightblueutil.cpp:LookupName():

    if (ignoreCache) {
                addr.SetAction(KHostResName|KHostResIgnoreCache);
            } else {
                addr.SetAction(KHostResName);
            }
           
            hostResolver.GetByAddress(addr, nameEntry, status);
           
            User::WaitForRequest(status);
           
            if (status == KErrNone) {
                *aDeviceName = nameEntry().iName;
                err = KErrNone;
            } else {
                err = KErrGeneral;
            }

The status variable is set to -6 which means "KErrArgument: Bad request". Unfortunately I could not find the solution myself.