We tried using the standard autogenerated code for running bluetooth in swift:
func centralManagerDidUpdateState(_ central: CBCentralManager) { switch