2017년 6월 20일 화요일

Error 515 not connected to a device


Am  creating an app to drive a robot via Bluetooth . by using direction and accelerometer but once i try to lunch my app an error appears  "Error 515:  Not connected to a bluetooth device." and its keeps showing up even after the app is closed .i thought that the problem is when i used only one screen but the same error occurs when i have tried 2 screens .
Can any one help me with this .

--
At the present time, developers using bluetooth can not change screens.  Changing screens disrupts the bluetooth connection.   You solution does not include another screen.

You said "try to lunch my app."   is lunch a typo?  Do you mean launch?     or is this slang for something we do not understand.

Have you paired the two bluetooth devices?  

You might find Taifun's code snippets helpful 

http://puravidaapps.com/snippets.php#2enableBT
enableBT.aia

--
launch sorry ,
am using only one bluetooth device  
when i disable the accelerometer block the app work properly but when i add it the error appears 

--
This is telling you a lot about the problem "when i disable the accelerometer block the app work properly."       There is something wrong in where you place that block in the event handler or something wrong with how you schedule a sequence of events.   If you would post the blocks where you disable the accelerometer, you would get specific advice.

App Inventor apps are event driven, which simply means one activity can only start after a previous activity has finished.  Therefore this could be a timing issue as a guess   or simply an issue of how much you process.

Are you using AI to control LegoMindstorms or an Arduino or what?     If you use the Search for topics block at the top of this page to the right of the colorful Google and input the search words, you can benefit by previous Forum discussions if you peruse the list of provided links.   How to do what you want might be discussed there.

--
i found where was the error and i solve it ,  we must do this condition for the error to disappear  

--

댓글 없음:

댓글 쓰기