Bluetooth connection with multiple screens app inventor

4,684 views
Skip to first unread message

Adrian Pérez

unread,
Nov 14, 2014, 6:44:32 PM11/14/14
to mitappinv...@googlegroups.com
I've design an app for android using app inventor, to send commands so that an Arduino microcontroller decode this commands. I've been watching tutorials all over youtube and I have manage to connect to a Bluetooth module HC-6. 

The problem is that I couldn't stay connected with the bluetooth module with the others screen, which consists of clicking the buttons to send the commands. Then I use the block "open another screen, start value" to send a variable that contain the  MAC Address of the android device. But after watching and reading a lot, I couldn't find an answer about why i cannot stay connected after changing screens in the app. In other words, In the main screen I can send data but when i try to send data from another another then the erro of loose connection appears. 

The error that shows up when the connection is lost is "Error 507" of app inventor.

PS: sorry about my English, is pretty lame.

Taifun

unread,
Nov 15, 2014, 8:53:33 AM11/15/14
to mitappinv...@googlegroups.com
for bluetooth I recommend you to use only one screen
to simulate different screens, just use vertical screen arrangements and set them to visible = false or true as needed
Taifun

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


Advice: Before posting, it's a good idea to search in this forum. Many others have likely run into problems similar to yours. How to search see screenshot.



Adrian Pérez

unread,
Nov 16, 2014, 10:31:30 PM11/16/14
to mitappinv...@googlegroups.com
Thanks for your response! 

Minh Hiếu Bùi

unread,
May 1, 2015, 3:28:18 AM5/1/15
to mitappinv...@googlegroups.com
I'm not understand and I find in MIT and not see "vertical screen arrangements", Can you example for me

Taifun

unread,
May 1, 2015, 9:46:29 AM5/1/15
to mitappinv...@googlegroups.com
you can find the arrangements in the Layout drawer
PS: I deleted your duplicate post in the other thread for you. See also the Posting Guidelines.
Reply all
Reply to author
Forward
0 new messages