在ios中修改信标的udid,主要id和次要id

时间:2016-05-26 08:23:53

标签: ios iphone ibeacon core-bluetooth beacon

我想开发一个像BeaconSet和LightBlue这样的应用程序来修改任何类型信标的值。到目前为止,我已经在app中使用了CBCentralManager和CBPeripheral来检索信标的所有值,我可以通过信标从CoreBluetooth框架的CBC特性中获得。但是,当我尝试通过以下方法更改信标的值,如UDID,majorID和信标的minorID

- (void)writeValue:(NSData *)data forCharacteristic:(CBCharacteristic *)characteristic type:(CBCharacteristicWriteType)type;

然后这些值不会发生变化,也不会调用此外设委托方法,如下所示。

- (void)peripheral:(CBPeripheral *)peripheral didUpdateNotificationStateForCharacteristic:(CBCharacteristic *)characteristic error:(nullable NSError *)error;

那么,我应该如何更改此值?

由于

0 个答案:

没有答案
相关问题