             }).addDisposableTo(disposeBag)
     }
 
-    fileprivate func showWriteFieldForCharacteristic(characteristic: Characteristic) {
+    fileprivate func showWriteFieldForCharacteristic(characteristic: Characteristic, type: CBCharacteristicWriteType) {
         let valueWriteController = UIAlertController(title: "Write value", message: "Specify value in HEX to write ",
                                                      preferredStyle: .alert)
         valueWriteController.addTextField { textField in

        }
        
        if characteristic.properties.contains(.write) || characteristic.properties.contains(.writeWithoutResponse) {
            let writeValueNotificationAction = UIAlertAction(title: "Write", style: .default) { _ in
                self.showWriteFieldForCharacteristic(characteristic: characteristic)
            }
            actionSheet.addAction(writeValueNotificationAction)
        }

import UIKit
import RxBluetoothKit
import RxSwift
import CoreBluetooth

class CharacteristicsController: UIViewController {

