¡@

Home 

2014/10/15 ¤U¤È 10:12:33

iphone Programming Glossary: peripherals

Corebluetooth central manager callback didDiscoverPeripheral twice

http://stackoverflow.com/questions/11557500/corebluetooth-central-manager-callback-diddiscoverperipheral-twice

dictionaryWithObject NSNumber numberWithBool NO forKey CBCentralManagerScanOptionAllowDuplicatesKey Scan for peripherals with given UUID cm scanForPeripheralsWithServices NSArray arrayWithObject HeliController.serviceUUID options scanOptions.. used in Apple samples like the Health Thermometer is that turning this flag on allows discovery of multiple different peripherals with the same UUID. For example if you want to write an app that looks at four different thermometers in the same room and.. so the scan didn't stop after finding the first one. In their code Apple avoids duplicates like this NSMutableArray peripherals self mutableArrayValueForKey @ thermometers if self.thermometers containsObject peripheral peripherals addObject peripheral..

Bluetooth connection between 2 iOS devices

http://stackoverflow.com/questions/13857143/bluetooth-connection-between-2-ios-devices

CBCentralManagerScanOptionAllowDuplicatesKey nil Documentation says passind nil as device UUID scans and finds every peripherals self.mCentralManager scanForPeripheralsWithServices nil options options return 0 @end iphone ios bluetooth core bluetooth..

Core Bluetooth and backgrounding: Detection of a device and triggering an action, even after being days in background mode?

http://stackoverflow.com/questions/15062902/core-bluetooth-and-backgrounding-detection-of-a-device-and-triggering-an-action

call will continue even when the App is in the background. CoreBluetooth will continue to monitor for specific peripherals or peripherals that match the services your App is looking for and call your Apps delegate when found or connected. Be mindful.. continue even when the App is in the background. CoreBluetooth will continue to monitor for specific peripherals or peripherals that match the services your App is looking for and call your Apps delegate when found or connected. Be mindful that every..