Not getting flat events from sensor.
I have the following code to try to process flat events from the sensor but the event handler callback is never called:
MBLAccelerometerBMI160* accelerometerBMI160 = (MBLAccelerometerBMI160*) device.accelerometer;
[accelerometerBMI160.flatEvent startNotificationsWithHandlerAsync:^(MBLNumericData *obj, NSError *error) {
if (obj != nil) {
NSLog(@Flat change: %u, obj.value.boolValue);
}
}];
I am also asking for notifications on orientation events, but those get called correctly.
This discussion has been closed.
Comments