summaryrefslogtreecommitdiff
path: root/test/mqtt_relay_server_util.py
blob: e6c5255f5aa7731ccc3715ea4afc1e5843ccb9b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env python3
import sys
import os.path
sys.path.extend([
    os.path.realpath(
        os.path.join(os.path.dirname(os.path.join(__file__)), '..')
    )
])

from src.home.config import config
from src.home.mqtt.relay import MQTTRelayClient


if __name__ == '__main__':
    config.load('test_mqtt_relay_server')
    relay = MQTTRelayClient('test')
    relay.configure_tls()
    relay.connect_and_loop()