Hi Guys
I'm busy connecting a Arduino Uno with HC-06 to the BlueTooth Example from Erel.
I'm sure someone had this issue, but could find anything. My apologies if it has been answered somewhere else.
The Arduino Serial Monitor receive the Character send from the Bluetooth exampleApp FINE., but when trying to send back from the Arduino Terminal to the Android App, nothing receives, and the "Connection is Broken" Message appear and disconnect Bluetooth
Is there a Specific format I must send from the Arduino To the Android APP?
Here is my Arduino Code if it might help
I'm busy connecting a Arduino Uno with HC-06 to the BlueTooth Example from Erel.
I'm sure someone had this issue, but could find anything. My apologies if it has been answered somewhere else.
The Arduino Serial Monitor receive the Character send from the Bluetooth exampleApp FINE., but when trying to send back from the Arduino Terminal to the Android App, nothing receives, and the "Connection is Broken" Message appear and disconnect Bluetooth
Is there a Specific format I must send from the Arduino To the Android APP?
Here is my Arduino Code if it might help
B4X:
void setup()
{
Serial.begin(9600);
Serial.println("Enter AT commands:");
// HC-06 default serial speed is 9600
BTserial.begin(115200);
}
void loop()
{
// Keep reading from HC-06 and send to Arduino Serial Monitor
if (BTserial.available())
{
Serial.write(BTserial.read());
}
// Keep reading from Arduino Serial Monitor and send to HC-06
if (Serial.available())
{
BTserial.write(Serial.read());
}
}
[\code]
If tested it with a Android App S2 Terminal and it works fine both ways. The objective will be to receive a Bunch of strings/numbers from the Arduino, and be graphically displayed in the Android App
I first want to get them communicate successfull before going on with the other Arduino code
Any Help will be highly appreciated.
Thanks
Danie