MessageConfiguration

data class MessageConfiguration(dataConfigs: List<DataConfig<out SupportedSensorTypes>>, measureConfigs: List<FieldConfig>, configurationName: String, messageType: ActiveSenseModel)

Bundles the configuration needed to send a singular message

Constructors

Link copied to clipboard
constructor(dataConfigs: List<DataConfig<out SupportedSensorTypes>>, measureConfigs: List<FieldConfig>, configurationName: String, messageType: ActiveSenseModel)

Functions

Link copied to clipboard

This function on every measurement cycle. It reads all current values of the requested Sensors and appends them to the set of current values.

Link copied to clipboard
Link copied to clipboard
fun prepMessage(user: String, hertz: Int): ActiveSenseModel?

This could be a bit nicer, if Kotlin's Generics inference would work properly, or I knew better -.-

Link copied to clipboard
fun registerSensors(context: Context)
Link copied to clipboard