Bluetooth error 507 appinventor - arduino bluetooth HC10 and Android device

1,205 views
Skip to first unread message

Jorgitsss

unread,
Feb 18, 2017, 9:57:53 PM2/18/17
to MIT App Inventor Forum
_______________________________________________________
Ayuda.
antes de abrir la app vincule con exito el mobil con el hc10.
abri la app y seleccione el hc10 de la lista y recibo el error 507.
¿donde esta el problema ?
_______________________________________________________
Help
Before opening the app successfully link the cell with the hc10.
I opened the app and select the hc10 from the list and I get the 507 error.
where is the problem ?
_______________________________________________________
Portapapeles01.jpg
Portapapeles02.jpg
Screenshot_20170218-232644.png
Screenshot_20170218-232757.png
Screenshot_20170218-232819.png

Ghica

unread,
Feb 19, 2017, 11:28:28 AM2/19/17
to MIT App Inventor Forum
I think the HC-10 uses BT4.0, or BLE? You need the BLE extension to connect.
Look here for an example: http://appinventor.mit.edu/explore/blogs/karen/2016/08/heart.html or in the BLE section of the FAQ in this forum.
Cheers, Ghica

Ghica

unread,
Feb 20, 2017, 5:36:19 AM2/20/17
to MIT App Inventor Forum
Please only reply on this forum and do not send mail to me privately!!
You wrote:
Yes!¡!  is BLE ... and have to do it on arduino nano one or mega... 
so

#include <CurieBle.h>
BLEPeripheral blePeripheral; 

the mobil android is the client and the arduino bluetooth play like role=0 
I m confuse it .
>>

Read the article in mentioned in the link I gave you. The article is here: http://ai2.appinventor.mit.edu/reference/other/IoT.html
The example uses an Arduino 101, which has BLE built-in, but with your HC-10 it should work the same.

The BLE extension for App Inventor can be found here: http://appinventor.mit.edu/extensions/
but you could also take the heart-rate monitor .aia from the example and change it for your purpose.

As for the Client-Server role: usually the phone is the client. It sends a request to the Arduino (server) which serves (returns) the data requested.
It is very similar to what happens on the web: a client, phone or webbrowser sends a request to a server somewhere on the web, and the server sends data back, wich the browser or the phone can display.
Reply all
Reply to author
Forward
0 new messages