sjmerel
About
- Username
- sjmerel
- Joined
- Visits
- 106
- Last Active
- Roles
- Member
Comments
-
Thanks, that worked! Is there documentation for the 3.x versions? I'd like to upgrade, if the 2.x versions are deprecated, but the docs on the mbientlab website are for 2.10.
-
Great, that worked, thanks. Is there a way to persist a timer event using MBLRestorable? When the device is woken from sleep, I'd like it to go back to sleep after a timeout if there's no connection. (Otherwise, if the user presses the button to…
-
Hmm, how do I do that with the disconnected event? To use the MBLTimer, I need to provide a callback, and I can't put a callback inside programCommandsToRunOnEventAsync, can I?
-
Actually, it looks like I can do this: [device.settings.disconnectEvent programCommandsToRunOnEventAsync:^() { [device.resetDevice]; }]; which will trigger the reset when disconnected. Not to be greedy... but is there also a way to do t…
-
It would be great if there were some way to trigger sleep mode without an explicit reset; for example, on disconnect. We are looking into use cases where the sensor will be used occasionally (say, an hour a day) and we'd like to maximize battery li…
-
Hi - thanks. Will this make it into the released Cocoapods version any time soon?
-
iOS
-
For now I've just moved the calibration functionality into the main app. Thanks for the info!
-
Actually, it seems like I can store data! I just needed to implement an MBLRestorable with properties for x/y/z offsets; when I call setConfiguration it serializes those property values persistently. I can read them later and offset the accelerome…
-
Actually the real problem was that I wasn't properly disconnecting the MBLMetaWear object. Now that I'm disconnecting, it's all working as expected.
-
Thanks... I figured out by comparing with the sample app that I need to stop the scan and restart it after a device disconnects; otherwise the averageRSSI will always be nil for that device.
-
I can see how I would use MBLRestorable to change a setting when the device boots (e.g. to set the device name). If you did add the ability to set offset registers to the iOS API, then I think I could set them to the correct value for each device at…
-
Thanks Eric,Are the offset registers persistent or do they reset after the device is turned off and on? Can you give more some more details on how to write the calibration commands to the flash memory?
-
I found that when I call clearDiscoveredDevices, I can no longer connect to the devices that have been advertised previously. Checking the averageRSSI property almost works, in that it is nil for the devices that are not actually advertising. How…
-
@Matt can you give me more details on how to use the offset endpoint? Is this accessible through the iOS API? Is there any way we can store calibration data on the device persistently? That way we could calibrate before shipping to a customer, r…
-
I understand that BLE doesn't give an indication that a device has been lost, but it is very counintertuitive that when my phone receives advertisements from one device, the library also notifies me about all the other devices it has ever seen, even…
-
Thanks - Is this error typically a constant offset to the actual value, then (as opposed to a scale factor, or something more complicated)?
-
Here some the raw values (but scaled by 9.80665f). We're sampling at 50Hz. gravity along -z: -1.95367,-0.49321,-8.99741, -1.93930,-0.47405,-8.96389, -1.94888,-0.46926,-8.93516, -1.93451,-0.46448,-9.00220, -1.93930,-0.47884,-8.95431, -1.93451,-0.47…
-
Thanks - that worked!