Posts by pcrook

    In most cases encode/decode will help ensure that the message payload is delivered and parsed by the receiver correctly. I ran across a case with numpy arrays where I needed to use serialization to send the data. In rare cases, you may want to consider using cPickle (its a built-in Python library for serialization)... you can import cPickle, and use cPickle.dumps to load your payload in the sender code; then use cPickle.loads on the receiver. Just remember that the max message size on DXL is currently 1 MB.

    sample snippets: