Persistent Configuration on the device (iOS Swift)
During a device scan and initial connection, I am connecting to the device and calling setConfigurationAsync to assign a new configuration object to the Meta Wear device. Everything is ok here and the method runDeviceBoot executed properly. I’m calling rememberDevice so this is saved. I can kill my app, restart it, connect to the device and retrieve my configuration via device.configuration call. The issue is that when I call downloadLogAndStopLoggingAsync to download the activity data, I lose the configuration object that I had previously assigned to the device. This occurs when I kill my app and re-connect to the device….calling device.configuration returns nil. if I don’t call downloadLogAndStopLoggingAsync, I can connect to the device, and the configuration object assigned is returned properly. The “stopLogging” parameter is NO for the downloadLogAndStopLoggingAsync call. Question is, do I need to re-set my configuration object after a call to downloadLogAndStopLogging? I don’t see this being done in their ActivityTracker sample.
This discussion has been closed.
Comments