diff options
Diffstat (limited to 'test/mqtt_relay_server_util.py')
-rwxr-xr-x | test/mqtt_relay_server_util.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/mqtt_relay_server_util.py b/test/mqtt_relay_server_util.py new file mode 100755 index 0000000..e6c5255 --- /dev/null +++ b/test/mqtt_relay_server_util.py @@ -0,0 +1,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() |