Add an interface for storing a batch of measures
This adds a batch of data interface using a dbus variant of semi-dynamic typed data, in the form of key: Value, where Value is a VARIANT datatype ( which declares that the first part of it is a data-signature to decode the rest, making it mostly typed )
The interface internally stores the data as string, while returning the original values in shape for the signal for notification.
This only decodes a certain amount of known datataypes (u64, f64, string, bool) to maintain most of our compatibility, but it does up-code u16/u32 to u64 in order to maintain some sense.
With this interface, a series of keys can be stored as a batch with a coherent time-stamp, fex. data from a buffered read in modbus, or a single reading in mbus, without forcing us to wrap through a multitude of data.
Related:
-
modio-logger!57 (merged) -
!17 (merged) -
lib_modio!2 (merged) -
ModioAB/mytemp-backend!612 -
modio-mqttbridge!53 (merged)