Pages: [1]   Go Down
Author Topic: Android + HC-05 bluetooth module + arduino mega 2560  (Read 1617 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I need to send data from android to arduino mega using the HC-05 bluetooth module and I am using the Genotronex.println to send data from arduino to android .. now my question is
is posible to send a full string from android to the arduino mega 2560 ??  because a need to send string to the arduino to configure that with my app made in android using bluetooth  smiley .

How can I read a full string via serial bluetooth ??
thanks!!!
Logged

Ayer, Massachusetts, USA
Offline Offline
Edison Member
*
Karma: 54
Posts: 1848
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You read the string character at a time, until you get some sort of marker that indicates the end of the string (newline, space, etc.).

In terms of sending more than 1 character from the phone, it depends on your bluetooth app in the phone.  Some can be configured to send more than one character, some can't.  The app Bluetooth Controller, for example can be configured to send different text for the nine buttons that are configured on the screen: https://play.google.com/store/apps/details?id=apps.BT&hl=en
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks you so much !! I got it smiley
Logged

Pages: [1]   Go Up
Jump to: