mirror of
https://github.com/mainflux/mainflux.git
synced 2025-05-08 19:29:17 +08:00

* MF-1421 - Add a flag for making flattening JSON transformer optional Signed-off-by: Burak Sekili <buraksekili@gmail.com> * Add test cases for JSON transformer without flattening Signed-off-by: Burak Sekili <buraksekili@gmail.com> * Add a comment for Transform Signed-off-by: Burak Sekili <buraksekili@gmail.com> * Separate TestTransformJSON into two tests Signed-off-by: Burak Sekili <buraksekili@gmail.com> * Replace flatten flag Signed-off-by: Burak Sekili <buraksekili@gmail.com> * Remove unnecessary flattening while reading a message Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Message Transformers
A transformer service consumes events published by Mainflux adapters (such as MQTT and HTTP adapters) and transforms them to an arbitrary message format. A transformer can be imported as a standalone package and used for message transformation on the consumer side.
Mainflux SenML transformer is an example of Transformer service for SenML messages.
Mainflux writers are using a standalone SenML transformer to preprocess messages before storing them.