Bluetooth module to android connection directly using mac address

387 views
Skip to first unread message

Aditya Karkar

unread,
Sep 3, 2015, 12:46:35 PM9/3/15
to MIT App Inventor Forum
hello everyone....
 when i have to connect Bluetooth module to android using mit app inventor app i have to use BEFOREPICKING and AFTERPICKING instruction everytime. but now i want a situation like that when i click a button, my android device connected to the bluetooth module directly using mac address without listpicker and beforepicking afterpicking instuction.help me to get out of this

Taifun

unread,
Sep 3, 2015, 1:14:25 PM9/3/15
to MIT App Inventor Forum

instead of the listpicker use a textbox together with the mac address and add it into the address socket of the BluetoothClient.Connect block

A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook   http://www.appinventor.org/book2 ... the links are at the bottom of the Web page.  The book 'teaches' users how to program with AI2 blocks.
There is a free programming course here http://www.appinventor.org/content/CourseInABox/Intro  and the aia files for the projects in the book are here:  http://www.appinventor.org/bookFiles  
How to do a lot of basic things with App Inventor are described here:  http://www.appinventor.org/content/howDoYou/eventHandling  .

Also do the tutorials http://appinventor.mit.edu/explore/ai2/tutorials.html to learn the basics of App Inventor, then try something and follow the
 Top 5 Tips: How to learn  App Inventor

You will not find a tutorial, which does exactly what you are looking for. But doing the tutorials (not only reading a little bit) help you to understand, how things are working. This is important and this is the first step to do.

Taifun

Trying to push the limits of App Inventor! Snippets and Tutorials from Pura Vida Apps by  Taifun.         



Aditya Karkar

unread,
Sep 4, 2015, 9:55:43 AM9/4/15
to MIT App Inventor Forum
ny straight forward question is that...when i press simply button on my app, it will connect directly to particular bluetooth module that i want. irrespective of many bluetooth connection available.  i want specific bluetooth moduleto connect that i want ,,no matter how many bluetooth available 

Taifun

unread,
Sep 4, 2015, 10:07:46 AM9/4/15
to MIT App Inventor Forum
did you follow my advice?

instead of the listpicker use a textbox together with the mac address and add it into the address socket of the BluetoothClient.Connect block

Taifun
Reply all
Reply to author
Forward
0 new messages