How to set Inquire Access Code (IAC) via AT commands on HC-05

Hey Folks,

I am trying to set IAC of HC05 via AT Commands, but for some reason, the result is not as desired.

I need to set the IAC as '1234', for which I enter the command :

AT+IAC=1234

The module responds OK, but when I ask

AT+IAC?

It replies '01234'.

Now, it has been troubling me for the past few days. I've also tried adding '\r\n' to the end of command, but it sets the IAC as '1234444'

Would be thankful if you can help me with this! Tried searching the net but to no avail.

Thanks!
torquefreak

This reference seems to imply that the IAC parameter is six hexadecimal digits.

https://www.itead.cc/wiki/Serial_Port_Bluetooth_Module_(Master/Slave)_:_HC-05

This reference has an entire appendix about IAC. From this it appears to be 24 bits of binary fields: