Added platform logic to discoverCharacteristics