yeah so for calculating rssi value, I use the following AT commands:
AT+INQM=1,9,48
AT+INQ
These commands work when I type each in the serial monitor.
So currently I am trying to send the former through a code and expect to receive an OK from HC-05 which I am not getting.
I don't know properly what it does, but I have seen people suggesting to end AT commands with \r\n.
\n is i guess for new line
\r is something called carriage return which I dont understand
while (true) {
if (BTSerial.available()) {
char c = BTSerial.read();
Serial.write(c);
result += c; // append to the result string
if ('\n' == c)
break;
}
}
waiting to received a complete response from the device by waiting for a termination character instead of waiting a fixed amount of time (48 msec) or that your request failed and the device reported an ERROR?