user32393: I want to find all the Bluetooth addresses of connected devices using  an HC-05/HC-06 Bluetooth module and an Arduino. I can't find any code related to this. Basically I need the addresses to put in an array. Is it possible to do this with an HC-05 or 06?

user30152: You just have to send the above Bluetooth command via serial port to your Bluetooth module using print command.
For example yourserial.print("AT+BIND?"); OR yourserial.print("AT+INQ"); if you are using SoftwareSerial. Otherwise just use Serial.print("AT+BIND?"); OR Serial.print("AT+INQ"); when using Rx/Tx pins. That will do the job.

user4628: The HC-05 has an AT command, AT+BIND?, that will tell you which slave device it is connected with currently. Since you can connect to one device only at the same time, your array is going to be a very short one.
AT+INQ will provide you with a list of nearby devices, to which it can connect.

32393: <p>I want to find all the Bluetooth addresses of connected devices using  an HC-05/HC-06 Bluetooth module and an Arduino. I can't find any code related to this. Basically I need the addresses to put in an array. Is it possible to do this with an HC-05 or 06?</p>
 30152: <p>You just have to send the above Bluetooth command via serial port to your Bluetooth module using print command.</p>

<p>For example <code>yourserial.print("AT+BIND?");</code> OR <code>yourserial.print("AT+INQ");</code> if you are using SoftwareSerial. Otherwise just use <code>Serial.print("AT+BIND?");</code> OR <code>Serial.print("AT+INQ");</code> when using Rx/Tx pins. That will do the job.</p>
 4628: <p>The HC-05 has an AT command, <code>AT+BIND?</code>, that will tell you which slave device it is connected with currently. Since you can connect to one device only at the same time, your array is going to be a very short one.</p>

<p><code>AT+INQ</code> will provide you with a list of nearby devices, to which it <strong><em>can</em></strong> connect.</p>
