- git clone https://github.com/MovellaTechnologies/dot_example_ios
- pod install
- open MovellaDotExampleiOS.xcworkspace
- Please use a real iPhone to run with the sample code , the simulator will appear errors.
- Set the delegate
[DotConnectionManager setConnectionDelegate:self];
- Start scan
@property (strong, nonatomic) NSMutableArray<DotDevice *> *deviceList;
[DotConnectionManager scan];
- (void)onDiscoverDevice:(DotDevice *)device
{
NSInteger index = [self.deviceList indexOfObject:device];
if(index == NSNotFound)
{
[self.deviceList addObject:device];
}
}
DotDevice *device = self.deviceList.firstObject;
[DotConnectionManager connect:device];
DotSyncResultBolck block = ^(NSArray *array)
{
};
[DotSyncManager startSync:self.deviceList result:block];
DotDevice *device = self.deviceList.firstObject;
device.plotMeasureMode = XSBleDevicePayloadCompleteEuler;
device.plotMeasureEnable = YES;