I've set up plugin relay devices for my pool. I've had an AppleScript running in Background Tasks that handles the serial communication. Rewriting in Python.
the question: what is best way to communicate between the plugin and the background task and its threads. really want queues both in and out of the task.
since all running in server, assume there is a way to talk between the namespaces, but not sure how. in applescript, used a bunch of Indigo variables, but that is a real kluge. Would look like this:
Plugin <--------> background task to process commands at low level <---------------> thread sending/receiving commands with pyserial
??? Queue
Its that first link that is getting me. would prefer queues or a priority queue.