We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I have a RPi-based project that uses the Redis PubSub capability to pass data around between Python scripts and Node.js and even a Lua app. I want to add a feature built in Processing and need my sketch to listen on a channel and publish its data to other processes as well. I have installed the Redis library which I understand is a wrapper for Jedis, the canonical Java Redis implementation. I can use the one simple example file to set and get a variable. But I have no idea what syntax to use to subscribe and publish to channels. I am fairly new to Processing and don't know much about Java. In my Python scripts publishing is easy but listening to channels involves getting a redis.pubsub instance in a Thread class instance, subscribing to my channel, and then running the pubsub.listen() method in the thread's run loop. Can anyone help me?