sandeepmistry / arduino-BLEPeripheral

An Arduino library for creating custom BLE peripherals with Nordic Semiconductor's nRF8001 or nR51822.
MIT License
463 stars 180 forks source link

Resetting/Restarting causes BLE to continually disconnect/reconnect #251

Open joshness02 opened 6 years ago

joshness02 commented 6 years ago

I have been working on a project using BLEPeripheral ANCS example (which has been edited) along with the Adafruit Bluefruit nRF8001 and noticed that if I reset my Arduino (Pro Mini) or restart power after connecting it to my iPhone then it gets stuck in a constant loop of disconnecting and then reconnecting. Any idea on why this might be? I am thinking it is a problem with my Bond Store, but not sure how to use it. The unchanged example code does this as well. The only way to fix it is to forget the Bluefruit on my phone, turn off bluetooth, turn it back on, and re-pair.