#28884
Hello. I am very new to Arduino and also programming BLE devices. I have 2 Bluno BLE beetles. One is configured as Central, and the other as Peripheral. I also used the AT+BIND command to bind the 2 beetles. The Peripheral BLE just writes some simple text to the Serial. The Central begins running, and the Serial Monitor shows Data coming from the Peripheral BLE ("Weight 2.57"), however I cannot get the arduino code on the Central BLE to Read in the Serial info from Peripheral BLE and trigger the "TRUE" of Serial.available() and store the Peripheral Serial output into a variable on the Central BLE.

Any help is appreciated!

Serial Monitor Output:

Waiting for command...
Weight
2.57
Weight
2.57
Weight
2.57
Weight
2.57
Weight
2.57
Weight
2.57
Weight
2.57
Weight
2.57



Central BLE Code:


#include <SoftwareSerial.h>
SoftwareSerial Bluetooth(0, 1); // RX, TX

String Data; // the data received

void setup() {
Bluetooth.begin(9600);
Serial.begin(9600);
Serial.println("Waiting for command...");


}

void loop() {
if (Bluetooth.available()){ //wait for data received
Data=Bluetooth.read();
Serial.println("Available Data");
Serial.print(Data);
}
else{;}

delay(100);
}