View unanswered posts | View active topics It is currently Wed Aug 05, 2020 10:14 am






Reply to topic  [ 1 post ] 
bluetooth intrinsic 
Author Message
Expert
User avatar

Joined: Sun Aug 19, 2007 2:43 pm
Posts: 156
Location: New Jersey
Post bluetooth intrinsic
I have been doing manual search and connect. By reading up the document, it looks like this can be done programmetically. Unfortunately, I have tried with btSearch followed by btConnect with bluetooth manually turned on already. It did not work.....
Code:
     
setFriendlyName("DudeSke");
setSessionPIN("0000");

nxtDisplayTextLine(0, "Contact %s", kGPSName);
btSearch();
  while(nBTCurrentStreamIndex < 0)
  {
//  nBluetoothState btDeviceStatusFoundViaSearch 
    nxtDisplayTextLine(4, "--- %d  ---", nBluetoothState);
    btConnect(1, kGPSName);
    wait10Msec(10);
   }
  nxtDisplayTextLine(0, "Connected!");
 


any insight?

_________________
==Elizabeth Mabrey


Sat Jul 02, 2011 11:28 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.