private fun getCharacteristicType() : String {
        var string = "Properties: "

        for (property in XYBluetoothCharacteristicProperties.values()) {
            if (characteristic.properties.and(property.value) == property.value) {