From 8381cc87c601ac8c91512be504b86bd7664d0b1b Mon Sep 17 00:00:00 2001 From: jkerdreux-imt <jerome.kerdreux@imt-atlantique.fr> Date: Sat, 11 Jan 2025 00:59:37 +0100 Subject: [PATCH] renamming --- libs/lib/examples/test_dev_method.py | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 libs/lib/examples/test_dev_method.py diff --git a/libs/lib/examples/test_dev_method.py b/libs/lib/examples/test_dev_method.py deleted file mode 100644 index 1ecd0297..00000000 --- a/libs/lib/examples/test_dev_method.py +++ /dev/null @@ -1,23 +0,0 @@ -""" -Simple message encoding / decoding to test the search method -""" - -from xaal.lib import MessageFactory, MessageType -from xaal.lib import config, core, helpers, engine -from xaal.schemas import devices - -helpers.setup_console_logger() - -mf = MessageFactory(config.key) -source = devices.hmi() -target = devices.lamp_color() - -data = mf.build_msg(source, [target.address], MessageType.REQUEST, 'turn_off', {'smooth': 20}) -msg = mf.decode_msg(data) -assert msg - -print(f"Message: {msg}") -engine.run_action(msg, target) - -method, params = core.search_action(msg, target) -print(f"Method found: {method} params {params} ") -- GitLab