This project has moved. For the latest updates, please go here.

Automatically connect bluetooth device to server

Topics: Bluetooth - BlueSoliel
Jan 5, 2013 at 11:39 AM

hello everyone,

Is there a way to automatically connect a bluetooth device to my laptop ? I want the laptop to be the server and listens to a connection from the other device (phone or laptop) , then if the server receives a connection , it checks the MAC address of the connecting device and accepts the connection for a specific address only. I don't want to press any button on the server , just connect from the other device and send text between the 2 devices .

Thanks in advance 

Jan 9, 2013 at 2:27 PM

Yup that's possible.

You've posted this in the BlueSoleil forum. Unfortunately that stack provides no API for server connection, but there's no problem with the Microsoft or Widcomm stacks.

See  If you want to restrict the remote device then check the remote address just after AcceptBluetoothClient returns and close the connection if its not an acceptable remote device.