How to automatic pair to bluetooth device that is already paired

1,090 views
Skip to first unread message

kurar...@gmail.com

unread,
Aug 30, 2014, 9:12:30 AM8/30/14
to mitappinv...@googlegroups.com
The arduino with Bluetooth module is already paired in my Android phone. When I use the app that I made in AI2, I will always click the "select BT module" to choose and connect to the arduino. Can it have the function so that when the App in open it will automatically connect to the arduino? can it be done?

Taifun

unread,
Aug 30, 2014, 12:13:51 PM8/30/14
to mitappinv...@googlegroups.com
yes, you can
just connect in Screen1.Initialize
this example might help

boolean Connect(text address)
Connect to the Bluetooth device with the specified address and the Serial Port Profile (SPP). Returns true if the connection was successful.

Taifun
Reply all
Reply to author
Forward
0 new messages