For the HC-05 the method in my tutorial work for all the HC-05 modules that i have tried.
I have not used the BLE HM-10.