software you can take with you

To Get Proper exception

Last post 11-07-2011 7:49 AM by alanjmcf. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 10-31-2011 1:00 AM

    To Get Proper exception

    Hello Vivwe,

    My Application is wokong fine but i want to know the Proper Exception like when ever user disable the Bluetooth it automatically Application 

    Should give Bluetooth off exception,After sending the data need to know wheather the data is received correctly by remote device or not

    so please prove the Proper Code to handle this.

     

    Regards

    Ramesh.

  • 11-04-2011 4:43 AM In reply to

    Re: To Get Proper exception

    What happens to connections may well be Bluetooth stack dependent.  What platform are you using?  Desktop Windows or Mobile? And which stack: Microsoft, Widcomm,etc?
  • 11-04-2011 5:22 AM In reply to

    Re: To Get Proper exception

     Hello alanjmcf,

    thank you very much for the response.

    i am using MS stack with platform windows xp/windows7 Destop/laptop.

    Another importante thing is i want know the signal strength of Remote Device/DeskTop . this how can i Achive this?

    I need another clarification also my application hang at (waition for response from RemoteDevice)?

      Guid serviceClass = new Guid("{63236351-8712-4052-8A8E-A94C3ABF2B7D}"); ;
                    oBluetoothListener = new BluetoothListener(serviceClass);

                    oBluetoothListener.Start();
                     
                    BluetoothClient btc = oBluetoothListener.AcceptBluetoothClient();

    Please replay me ASAP.

    Thank you very much for your Response.

  • 11-07-2011 7:49 AM In reply to

    Re: To Get Proper exception

    There's no RSSI support on the MSFT Bluetooth stack.  See http://32feet.codeplex.com/wikipage?title=Peer%20Device%20Information

    You can use BluetoothListener.BeginAcceptBluetoothClient is you want no-blocking.  But its a wee bit tricky to use so you can use just use a new thread and put the (blocking) call to BluetoothListener.AcceptBluetoothClient there.

Page 1 of 1 (4 items)
Copyright © 2001-2013 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy. OrcsWeb's Windows Cloud Server Hosting