sandeepmistry / arduino-BLEPeripheral

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

Device not visible on BLE after power cycling #218

Closed probonopd closed 6 years ago

probonopd commented 6 years ago

I am using a generic nRF51 board with the S110 softdevice.

The sketch works, I can access the device. But only until I cut power to the device.

The device is not visible on BLE anymore after power cycling. In other words, it "disappears" when I unplug and re-plug power. It cannot be found by the nRF Connect app anymore, until I upload (the same) sketch again from the Arduino IDE.

How could I debug this?

probonopd commented 6 years ago

Actually turns out the whole sketch doesn't restart after power cycling; confirmed with the blink sketch. So this is probably an issue that belongs to https://github.com/sandeepmistry/arduino-nRF5 rather than here. Hence moving to https://github.com/sandeepmistry/arduino-nRF5/issues/252.