hello frds.........
i want 2 check bluetooth status , whether is it off or on and if
bluetooth is ON but still not being used(i.e data is not transferred)so that i can switch it off so as to save the bluetooth resource.
pls help me.
hello frds.........
i want 2 check bluetooth status , whether is it off or on and if
bluetooth is ON but still not being used(i.e data is not transferred)so that i can switch it off so as to save the bluetooth resource.
pls help me.
See this: Check Bluetooth On or Off
Always search on Wiki first. It has many good articles which may suffice your needs. For this particular question, just search for "bluetooth" on Forum Nokia Wiki
All the best.
Nokia Developer Wiki Moderation team
ths sumit n kiran 4 d reply.
now i m able 2 check wethr bluetooth is on or off,
pls tell me if bluetooth is ON but still not being used(i.e data is not transferred)....how 2 check it....?
i checked 4 CBluetoothPhysicalLinks::Enumerate() in sdk help , bt unable 2 catch it.
can ny1 post sm sample code.
REPLY 2 SUMIT....
helo sumit.
i checked post about my problem andd u hd also d same problem befor.
pls tell me hd u solved it...?
pls give me more details about my problem.
n giv me some sample code if u hv.
thx in advance.
Hi mamnay,
I had the same problem u got it right but i also posted the solution of this problem in some other post. Have you searched for it? this issue already have been discussed many times. But i am writing few lines below that would resolve your problem
iPhysicalLinks = CBluetoothPhysicalLinks::NewL(*this, iSocketServer);
RBTDevAddrArray iBTAddrArray;
iPhysicalLinks->Enumerate(iBTAddrArray,50);
if(iBTAddrArray.Count() >0)
{
//it means bluetooth active connections & give you no of connections and address.
else
{
//No active bluetooth connection
//switch off bluetooth here
}
thx 4 reply sumit........
bt i m new in symbian ,
still unable 2 get how 2 use ur code in my program.....
cn u pls explain me in brief.
plz help me yaar.
Hi manmay,
If you dont know how to put code in symbian then follow some examples
first. Search for related examples download them and then learn how use these API's work. I have written all the lines needed to find out bluetooth active links.You can search on http://wiki.forum.nokia.com/index.php/Wiki_Home for code examples related to bluetooth or any other topic.
Regards,
Sumit
ok sumit.
thx 4 ur concern.
let me try.