Retrieve Log Size in Android SDK
Hello,
I recently start working with the Android SDK after finishing an iOS application. After some readings, I can't seem to find any methods available to use to retrieve total entry count. https://mbientlab.com/documents/metawear/android/latest/com/mbientlab/metawear/module/Logging.html
In an example from 7 years ago there was a module called Logging.LogEntry but was that removed?
https://gist.github.com/mbientlab/a299fc705f8ac3b64359
In iOS, we can use "mbl_mw_logging_get_length_data_signal" to retrieve log size, which I assume we would do similarly using ForcedDataProducer but the only non-sensor related DataProducer is Setting.BatteryDataProducer. https://mbientlab.com/documents/metawear/android/latest/com/mbientlab/metawear/DataProducer.html
Does anyone know where we can retrieve log size without actually starting LogDownloading (which we can get the TotalEntry in Update)?
Thanks
Comments
@JCagle95 I can confirm the present Android SDK release has not exposed the log length endpoint.
The scaffolding is in place, as it is called during the readout process, but some slight sdk changes would need to be made to expose it as a discrete call.
https://github.com/mbientlab/MetaWear-Android-MetaBase-App/blob/main/app/src/main/java/com/mbientlab/metawear/metabase/DiagnosticFragment.java#L466
https://github.com/mbientlab/MetaWear-SDK-Android/blob/master/library/src/main/java/com/mbientlab/metawear/impl/LoggingImpl.java#L374
@Matt
Thank you so much for pointing to the file and lines of how we may modify the SDK for our use case!