From d71b0df31469e7ac12d4edcf8a1c8d6c6c74648c Mon Sep 17 00:00:00 2001 From: Hemna Date: Wed, 18 Aug 2021 20:14:03 -0400 Subject: [PATCH] Fixed aprsd-dev This patch fixes running the aprsd-dev plugin development tool. It currently only works for message based plugins. --- aprsd/dev.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/aprsd/dev.py b/aprsd/dev.py index ea3b318..a53ab01 100644 --- a/aprsd/dev.py +++ b/aprsd/dev.py @@ -187,9 +187,11 @@ def test_plugin( client.Client(config) pm = plugin.PluginManager(config) - obj = pm._create_class(plugin_path, plugin.APRSDPluginBase, config=config) + obj = pm._create_class(plugin_path, plugin.APRSDMessagePluginBase, config=config) - reply = obj.run(fromcall, message, 1) + packet = {"from": fromcall, "message_text": message, "msgNo": 1} + + reply = obj.run(packet) LOG.info("Result = '{}'".format(reply))