Artificial intelligent assistant

カメラをBLE経由で電源オンにする方法 `OLYCamera(CameraConnection)``(BOOL) wakeup:(NSError **) error` [ERROR] [OLYCamera+CameraConnection.m:332: -[OLYCamera(CameraConnection) internalWakeup:]] Error Domain=OLYCameraErrorDomain Code=195887106 "The value of 'peripheral' property is invalid." UserInfo=0x170075680 {NSLocalizedDescription=The value of 'peripheral' property is invalid.} peripheral



Bluetooth


- (void) centralManager:(CBCentralManager *) central didDiscoverPeripheral:(CBPeripheral *) p advertisementData:(NSDictionary *) advertisementData RSSI:(NSNumber *) RSSI
{
if (self.bleName.length > 0)
{
if ([[advertisementData objectForKey:CBAdvertisementDataLocalNameKey] isEqualToString:self.bleName])
{
self.camera.bluetoothPeripheral = p;
self.camera.bluetoothPassword = self.blePassword;
[self.centralManager stopScan];

[self.centralManager connectPeripheral:self.camera.bluetoothPeripheral options:nil];
}
}
}


connectPeripheral:options:wakeup

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 8c380b312b27baf71dfe7bfaa193436b