How to use BLE link on expansion shield for Raspberry Pi?

Requirements:
1. BLE link
2. Expansion shield for Raspberry Pi B+
3. Micro USB cable
4. Raspberry Pi B+ (Not used here)
STEPS
1. Set BLE link in AT mode by AT command AT+SETTING=DEFAULT;
2. Upload the code to expansion shield;
This code will print the message you send from your phone back to your phone and USB port(connected with pc), i.e. Serial monitor.
Code: Select allvoid setup() {
Serial.begin(115200);
Serial1.begin(115200); //initial the Serial
}
void loop() {
if (Serial1.available()) {
Serial1.println(Serial1.read());//send what has been received
Serial.println("Y"); //print to serial 0, serial monitor on PC
}
}
3. Connect every module together like in the photo. Connect you phone with BLE link, and send command, you will receive what you sent on your phone, and there will be message "Y" show on serial monitor.
Note: The switch"A--B" should be on A.

