Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69102

How to wait and connect to a BlueTooth peripheral when it powers up ?

$
0
0

I have a requirement to connect to two Blue Tooth peripherals - one at a time - based on specific requirements.

 

The peripherals are simple HC05 / 06 modules connected to an Arduino each. 

 

The attached code does this function well - though i am not sure if this is the right way to do it ! ( This is just sample code only for the BT. Otherwise there are lot more functions to handle ) 

 

But i have a problem : For this to work it is essential that both the peripherals are powered before i start the VI. This is not how it will be in real time - both the peripherals are battery powered and i cannot afford to keep them powered indefenitley !! 

 

What i want to do is : Start the BlueTooth server on the VI and leave it running and link up when the peripheral comes on line. After all this is how all cell phones work - once the BT is enabled, it connects to any paired peripheral when it is powered. 


Viewing all articles
Browse latest Browse all 69102

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>