I am trying to setup a HM10 (or similar Bluetooth LE to serial module) but am having problems with it.
The problem is when I am connected to the device with my phone, it works great. Now, if I force close the app while connected (or walk out of range), the HM10 module never returns to a discoverable state until it is power cycled. I could not find anything in the documentation regarding this. I am not able to connect to the HM10 manually via its MAC address either.
The only fix I can come up with is to have my app send a heartbeat signal to the MCU (ATMega 328p) and if the heartbeat is not seen within its allotted time, it should send AT+RESET to the HM10.
There has to be a better way, but I am not able to find it. Please let me know what you think.
Thank you in advance.
(This happens when using any generic BLE terminal app or a custom made app) (Android and IOS)