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.

Jackson Ng
  • 131
  • 4

1 Answers1

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).

Majenko
  • 105,095
  • 5
  • 79
  • 137
  • 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
    . 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 06 '17 at 02:34
  • 1
    Have you tried setting both devices to use the same pin? – Majenko Sep 06 '17 at 07: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 09 '17 at 23:58