I’m using an Arduino Nano with an HM-10 to communicate over Bluetooth. Programming in the Arduino IDE, I’ve succeeded in communicating, as a peripheral, with an iPhone app.
Now I’m trying to use the HM-10 as a Central to get data from a Bluetooth sensor. I can Discover and Connect to the sensor, but can’t figure out how to do data exchange.
Here’s a serial output showing what I’m doing:
Sent: AT+IMME1 (sent during setup)
(10-sec timeout, this happens every time, I have no clue why it doesn’t respond)
After receiving the AT+CONN, I’m connected to the peripheral and want to read certain Characteristics. But I’m stumped at how to proceed. I can’t get the HM-10 to respond to anything while connected. Presumably I’m sending it bad commands, but I can’t find in the docs any others to try. It seems like I’m missing something elephant-sized. Any ideas?
Thanks for reading this far, any tidbits are welcome. Is there a library I should be using?