1

Sorry for bad english :-(

I am starting with CoreBluetooth framework. i using write code like below for CoreBluetooth

[centralManager scanForPeripheralsWithServices:nil options:nil];

I took a look into apple reference, I do not understand that what's that serviceUUIDs?

- (void)scanForPeripheralsWithServices:(NSArray *)serviceUUIDs options:(NSDictionary *)options;

Please explain me.

user2864740
  • 60,010
  • 15
  • 145
  • 220
Taj rajan
  • 601
  • 1
  • 6
  • 20

1 Answers1

2

The NSUUID class creates UUID strings that are to uniquely identify types, interfaces, and other items.

UUIDs (Universally Unique Identifiers), also known as GUIDs (Globally Unique Identifiers) or IIDs (Interface Identifiers), are 128-bit values. UUIDs created by NSUUID conform to RFC 4122 version 4 and are created with random bytes.

more apple doc

Note:

It is Available from iOS 6

updated:

UUID

The Bluetooth-specific UUID of the service. (read-only)

@property(readonly, nonatomic) CBUUID *UUID

Discussion

This property is a 128-bit UUID that identifies the service.

Note:

Available in iOS 5.0 and later.

codercat
  • 22,873
  • 9
  • 61
  • 85