# Copyright (c) 2023, AgiBot Inc.
# All rights reserved.

aimrt:
  plugin:
    plugins:
      - name: mqtt_plugin
        path: ./libaimrt_mqtt_plugin.so
        options:
          broker_addr: ssl://127.0.0.1:8883
          client_id: example_pb_chn_subscriber
          max_pkg_size_k: 1024
          truststore: /XX/YY/ZZ/cacert.pem          # replace with your own truststore path
          client_cert: /XX/YY/ZZ/client-cert.pem    # replace with your own client certificate path
          client_key: /XX/YY/ZZ/client-key.pem      # replace with your own client key path
  log:
    core_lvl: INFO # Trace/Debug/Info/Warn/Error/Fatal/Off
    backends:
      - type: console
  executor:
  channel:
    backends:
      - type: mqtt
    sub_topics_options:
      - topic_name: "(.*)"
        enable_backends: [mqtt]
  module:
    pkgs:
      - path: ./libpb_chn_sub_pkg.so
        enable_modules: [NormalSubscriberModule]
    modules:
      - name: NormalSubscriberModule
        log_lvl: INFO

# Module custom configuration
NormalSubscriberModule:
  topic_name: test_topic
