Hi I am trying to get RSSI value from my HC-05 bluetooth module that is in master mode. I wrote some code but it did not work. Terminal shows nothing. Can you help me get through this? My HC-05 is in AT command mode and I am trying to get RSSI caused by another HC-05 module across the room. After I get whole RSSI entry I will parse required part somehow. I read other posts about this and they will not be of help to me.
Code:
#include <SoftwareSerial.h>
//master device 2
SoftwareSerial BT(5, 6); // RX, TX
String data;
void setup() {
Serial.begin(9600);
Serial.println("Enter AT commands:");
BT.begin(38400);
}
void loop(){
BT.write("AT+INQ\n\r");
while(!BT.available()){}
data = BT.read();
Serial.print(data);
delay(5000);
}