If the nrf51822 device goes out of range then comes back in range, the application automatically reconnects with the device and tries to read a particular characteristic. This works fine on Android 5 and Android 6, however on Android 7.0 and 7.1, the device reconnects and even its services are discovered but unable to read it's characteristics.