Example plugin wrong function

The example plugin, used verbatim, complains about an abstract class. The interface requires 'process'  not 'command'.
This commit is contained in:
Jason Martin 2023-05-19 22:53:15 +00:00
parent 4e99e30f16
commit 96fa4330ba
No known key found for this signature in database
GPG Key ID: A32FB822F36CCF43
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ class HelloPlugin(plugin.APRSDRegexCommandPluginBase):
command_regex = "^[hH]"
command_name = "hello"
def command(self, packet):
def process(self, packet):
LOG.info("HelloPlugin")
reply = f"Hello '{packet.from_call}'"
return reply