HC-05 master slave

hi everyone
I have a silly question that came to my mind
when communicating between HC-05 and A smartphone, the smartphone is considered as the master,
and the HC-05 is considered a slave.
master will send data to the slave and then the slave will send these data to the MCU.
my question here is that, what is the MCU considered if it is not a master or slave?
if I got something wrong, I'll be glad if you correct it for me.
thank you

The only time when it matters which is which is when communication is being established. Only a master can do this. Once comms has been established, both behave in the same way. The MCU is never the master, never the slave, and never considered anything. It is just an MCU passing data back and forth through its serial ports.

got that thanks!

As for the Bluetooth SPP profile (of which supported by HC-05), The master is the one that initiates a connection to a slave. If your MCU is working with a master, the MCU needs to know which slave it wants to connect, so you need the know the MAC of the target (a slave), then use that MAC to initiate a connection with the slave. If your MCU is working with a slave, the MCU only needs to wait for the connection between the slave and the master to be established. When it gets connected, it doesn't matter who is the master or the slave, just do data transmission over Bluetooth according to your project.