Jakob E. Bardram
Jakob E. Bardram
Hi @pmagnuson - thanks for your interest in RP. As for your question, RP supports JSON serialization. All the survey classes (RPTask, RPStep, etc.) all contains the `toJson` and `fromJson`...
Note also, that all the `RPResult` classes has a `toJson()` method, which allow you to upload the results back to the server (or save it on the phone).
> ### Phone numbers > Storing/validating the country calling code separately seems appropriate. I'm uncertain why the ISO code for the country is there as well, though. It seems like...
Has been implemented in CAWS.
I agree - in general there seems to be some redundancy in the data stream - also the measure type is stated several times.
In terms of hardware sensors (incl. the ones on the phone), I think the most important part is to store device information like serial numbers, model names, OS versions, hardware...
I've implemented this as part of the Flutter mobile sensing implementation https://github.com/cph-cachet/carp.sensing-flutter/blob/fb7d1aa6176d3b6f4731703917d1ecb700aeae4f/carp_mobile_sensing/lib/domain/triggers.dart#L645
Here is a link to the [Flutter Device Info package](https://pub.dev/documentation/device_info_plus/latest/device_info_plus/device_info_plus-library.html) which has a lot of inspiration for cross-platform device in formation.
The use case(s) I expects are the following - we should be able to know: * the type of smartphone (currently this is iOS or Android -- but what about...