I managed to execute the following AT commands:
AT+RMAAD : clears any previously paired devices.
AT+ROLE=1 -> Master Mode
AT+RESET
AT+CMODE=0 allows to connect to any device
AT+INQM=0,5,9 set inquiry to search for up to 5 devices for 9 seconds
AT+INIT -> I get ERROR(17)
AT+INQ -> I get ERROR:(1F)
Looking at forum posts, it seems to be an issue with my HC-05 version
AT+VERSION -> VERSION:3.0-20170601
It seems that version 2 modules work fine. How can I find a vendor selling HC-05 in the working version?
Unless there's a solution with v3 ..?
You are right about dodgy HC-05s, but it is just possible that you need to use a wire to set AT mode rather than just push the button. Or, you need to hold the button down with a clip. Currey has information on this.
Thank you for your replies.
I will try with an ESP32 as it seems to be more complete than HC05 devices.
Ultimately my goal is the following: I have a bluetooth device (ELEGOO Penguin Bot) that is controlled from a iOS application and I like to control that device from an arduino nano equipped with a bluetooth module (by connecting I suppose as a master and send appropriate commands)