Using code to read a bluetooth module HC-05 address

Hi,

I am new in Arduino programing and I have one Q. Is it possible to use code/program to read the address of a HC-05 module (e.g. 98d3:35:cd7d).

Thank you

In command mode, send it "AT+ADDR?" and you should get "ADDR:(address) OK" back.

johnwasser: In command mode, send it "AT+ADDR?" and you should get "ADDR:(address) OK" back.

Although you can't do this with the HC-05 in normal operation mode. It only works with at least 3.3V applied to the 'enable' pin of the HC-05 and the power cycled on the HC-05....so called AT command mode.

So in other words you would have to get the address of the HC-05 and then store it in your sketch as a variable.