I’m trying to establish a serial connection between the ITEAD BLE Shield (http://wiki.iteadstudio.com/ITEAD_BLE_SHIELD) and my Arduino. I have the jumpers on the board set for rx=3, tx=4, and am using the following code:
#include <SoftwareSerial.h>
SoftwareSerial BLE_Shield = SoftwareSerial(3,4); //(rx, tx)
void setup() // Called only once per setup
{
Serial.begin(9600);
BLE_Shield.begin(9600);
}
void loop() // Continuous loop
{
BLE_Shield.write("AT");
delay(50);
while(BLE_Shield.available() > 0)
{
Serial.write(BLE_Shield.read());
}
delay(500);
}
I get nothing back in the serial monitor at 9600. Anyone know what I’m missing?