# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
# SPDX-License-Identifier: Apache-2.0

nodes = {
    mqtt_node = {
        type = "mqtt",

        format = "protobuf",

        username = "guest",
        password = "guest",
        host = "localhost",
        port = 1883,

        keepalive = 5,				# Send ping every 5 seconds to keep connection alive
        retain = false,
        qos = 0,

        out = {
            publish = "test-topic"
        },
        in = {
            subscribe = "test-topic"
        },
        ssl = {
            enabled = false,
            insecure = true,
            cafile = "/etc/ssl/certs/ca-bundle.crt",
            certfile = "/etc/ssl/certs/my.crt",
            keyfile = "/etc/ssl/keys/my.key"
        }
    }
}
