Hello dear friends, I am seeking help
I have a BLE Bluetooth module AT-09 and I have 2 kind of problems.
The BLE is properly connected to the UNO, the jumper goes from TX through a voltage divider , and then to the RX of the AT09 (3.3V is entering the RX).
-
It is quite tricky to discover the BLE and connect it to my phone or laptop, because they do not recognize the BLE.
I managed to connect it to my phone using an app from play store. The BLE is visible but i cant connect it using common methods. What could be the problem ? -
When I use that BLE app, I can send information's to the Arduino via Phone, but I cant do the opposite. I can not print any data to my Phone app.
#include <SoftwareSerial.h>
SoftwareSerial BLE(4, 5); // RX, TX
char data;
boolean flag = false;
void getData() {
if ( BLE.available() > 0) {
data = BLE.read();
flag = true;
}
}
void printData() {
if (flag == true) {
Serial.println(data);
flag = false;
}
}
void setup() {
Serial.begin(9600);
BLE.begin(9600);
BLE.print("Arduino.cc forum rocks"); //this is just an example
}
void loop() {
getData();
printData();
}
Thanks in advance