jordanebelanger / SwiftyBluetooth

Closures based APIs for CoreBluetooth
MIT License
209 stars 66 forks source link

recive data count #40

Closed silexKhan closed 3 years ago

silexKhan commented 5 years ago

hi everyone

i have question!!

Bluetooth devices send 100 times per second data, but only about 50 count per second

please help me

sequence -

  1. scan
  2. connect
  3. NotificationCenter.default.addObserver(forName: Peripheral.PeripheralCharacteristicValueUpdate, object: peripheral, queue: nil) { (notification) in //here -- } peripheral?.setNotifyValue(toEnabled: true, forCharacWithUUID: self.CHARACTER_UUID, ofServiceWithUUID: self.SERVICE_UUID) { (result) in // check sucess }

I'm sorry I did not have good English.