Arduino & HC-05: Serial Menu Wizard

I have used the HC-05 bluetooth module many times in different control projects, but in fact I always used this with pre-defined configurations, where the module is a slave or a master with one defined slave. lately, I had to the case where the master has take decisions based on surrounding devices, and this is when I realized that the use of HC-05 is not really well presented on the internet. At least, I could not find any program that utilizes HC-05 as what you expect in your mobile phone’s bluetooth (e.g. switching on, searching for devices, selecting a device from the list…etc). This is where I decided to do it, an interactive wizard for HC-05 bluetooth modules, that displays menus over serial to control the module functionalities as master/slave and that switches between data and AT modes with SW commands.”