I was reading topics here, googling and I can't find any code to do this.

I developed an android app that sends signals to my arduino nano via bluetooth. Everything works ok, but I want to do some actions in my sketch if the android device connected to arduino has a particular MAC address.

How can I know the MAC address of a device connected via bluetooth to my arduino?

Maybe you can't, perhaps someone have the same device or knows how to get this data.

I think we might be at the stage where anybody who asks you for the documentation isn't going to be of any help to you.

I'm not completely au fait with these devices, and I don't understand what you are trying to do, so I have a question. Why do you want a MAC address?

I do have a JY-MCU that looks exactly like yours, and it works, but I am not using it the way you want to.

As I understand it bluetooth devices recognise each other, get paired by the user, and talk. That is their job, and that is the way I use mine. No MAC address.

It appears that the JY-MCU label simply refers to the board with a four or six-pin connector, and the HC-05 module is fixed thereto. The HC-05 is what you might want to know about, but probably don't. As far as I know, there is no documentation for the JY-MCU, and there is no need for it. All you need to know is written on the back of the board.

I think you need an HC-05 BT module that is master/slave switchable because to read mac addresses you need to be in master mode to scan for devices in range and connect to them. A slave only device (HC-06) does not have the commands to read the mac address.

I might seem like an idiot but remember it takes one to know one.Forum user generally fall into three categories (the good, the bad & the a**hole) what category do you fit in?

I'am digging out this old topic, cause I'd like to do the same thing as you did.Did you finally get a way to read the android device MAC adress using your arduino?Wich BT module did you used finally?Thanks in advance !