2

I have a bluetooth HM-10 configured in central mode. I have successfully connected it to another bluetooth device (a hexiwear bluetooth wearable). The problem now is that the hexiwear requires me to provide a 6 digit pin before it will bond with my HM-10.

Would anyone know the AT command that I could use to send the 6 digit pin from the HM-10 to the hexiwear?

Thank you.

1

The manual for the HM-10 can be found here.

Page 11 has the AT command you are interested in: AT+PIN:

AT+PIN123456
OK+Set:123456

By default the PIN is 000000.

(The manual is quite vague about the role of that command, so I assume since it is the only reference to PIN codes that it does what you require).

3
  • Thanks for the response. APIN command sets the PIN for the HM-10. My HM-10 is running central mode and I am trying to connect to a hexiwear (www.hexiwear.com) in peripheral mode. I am able to connect the hexiwear by sending AT+CON<address>. After successful connection, the hexiwear pops up a 6 digit pin that I am required to now send from the HM-10. This is where I am stuck because I do not know if there's a AT command that lets me send a pin from central to peripheral.
    – Jackson Ng
    Sep 6 '17 at 2:34
  • 1
    Have you tried setting both devices to use the same pin?
    – Majenko
    Sep 6 '17 at 7:55
  • Not yet, this requires me to hack my peripheral device because the pin it sends is a random number. But I will hack it and report back again soon. Thank you.
    – Jackson Ng
    Sep 9 '17 at 23:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.