mirror of
https://github.com/absmach/supermq.git
synced 2026-06-23 07:10:19 +00:00
3cd9774a91
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com>
20 lines
851 B
TOML
20 lines
851 B
TOML
# Copyright (c) Abstract Machines
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# To listen all message broker subjects use default value "writers.>".
|
|
# To subscribe to specific subjects use values starting by "writers." and
|
|
# followed by a subtopic (e.g ["writers.<channel_id>.sub.topic.x", ...]).
|
|
["subscriber"]
|
|
subjects = ["writers.>"]
|
|
|
|
[transformer]
|
|
# SenML or JSON
|
|
format = "senml"
|
|
# Used if format is SenML
|
|
content_type = "application/senml+json"
|
|
# Used as timestamp fields if format is JSON
|
|
time_fields = [{ field_name = "seconds_key", field_format = "unix", location = "UTC"},
|
|
{ field_name = "millis_key", field_format = "unix_ms", location = "UTC"},
|
|
{ field_name = "micros_key", field_format = "unix_us", location = "UTC"},
|
|
{ field_name = "nanos_key", field_format = "unix_ns", location = "UTC"}]
|