05-29-2014 03:18 AM - edited 05-29-2014 03:19 AM
i have two serial to bluetooth devices both send number count to pc.what i want to know is how to get adress of bluetooth device from device list of bluetooth discover then use it to connect on the first device read data close session and connect with second device.
Solved! Go to Solution.
05-30-2014 08:11 AM
Hello Aymanch,
The Bluetooth Discover VI will output a cluster with the devices within the range of your network, where one component will be the Address and the second component will be the Device Name. You can then use the address as an input to the Open Connection VI and then pass this reference to the Read VI and Close Connection VI.
If you want to see an example of how to get the address from the cluster and how to use these VIs, please open the Example Finder and look for the Simple Bluetooth project. The Server.vi shows how to unbundle the cluster and the Client.vi shows something similar to what you want to accomplish. Since you will use two devices, you could even use a For Loop to repeat the operation on both addresses.
05-30-2014 10:10 PM
thanks i will try it