Trying to Change Name and Password of HC-05 Bluetooth Module.
Changing Name is successful using AT+NAME=myName AT Command.
But changing Pin using AT+PSWD=5678 confirms as OK but Module connects to Mobile with default 1234.
AT ----> OK
AT+VERSION? ---> +VERSION:4.0-20190815
AT+NAME? ----> +NAME:myName
OK
AT+NAME=newName ---->OK
AT+NAME? ----> +NAME:newName
OK
AT+PSWD? ----> +PSWD:1234
OK
AT+PSWD=5678 ----> OK
AT+PSWD? ----> +PSWD:5678
OK
AT+RESET ----> OK
OK
That surprises me, but what would I know? I have never bothered to change the password. It is just faintly possible that you must use "advanced AT mode" to do this. Pressing the button isn't enough and you need to apply 3.3v to pin 34. Check the Martyn Currey website.
Installing public devices with password 1234 is a big security issue.
Is this issue known?
Is there anything in procedure to follow. Why Name is changed successfully but not PIN?
If you have an HC-05 v3, I believe it might be suss. I understand they are quite OK, so long as you stay away from AT mode, where they have a mind of their own. I assume they identify themselves with the version query.