Publish to topics using system.cirruslink.engine.publish()

Your problem is that jython is python 2.7.x, which uses strings for byte arrays. But strings in jython are really java strings, not byte arrays. So the .encode() method isn’t actually giving you a byte array. You’ll need to use the .getBytes() method from java’s actual String type.

1 Like