Use a queue to treat incoming messages instead of using server thread to answer
This commit is contained in:
parent
c92160f041
commit
fce491552b
5 changed files with 77 additions and 17 deletions
|
|
@ -13,10 +13,10 @@ def load(context):
|
|||
global DATAS
|
||||
DATAS.setIndex("name", "station")
|
||||
|
||||
evt = ModuleEvent(station_available, "42706",
|
||||
(lambda a, b: a != b), None, 60,
|
||||
station_status)
|
||||
context.add_event(evt)
|
||||
# evt = ModuleEvent(station_available, "42706",
|
||||
# (lambda a, b: a != b), None, 60,
|
||||
# station_status)
|
||||
# context.add_event(evt)
|
||||
|
||||
def help_tiny ():
|
||||
"""Line inserted in the response to the command !help"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue