devices – Device Utilities

eventmq.utils.devices.generate_device_name(prefix=None)

This takes care of the python3 ‘everything is unicode’ feature which causes errors when setting the IDENTITY of the ZMQ socket.

Parameters:prefix (str) – Prefix the id with this string.
Returns (str) An ascii encoded string that can be used as an IDENTITY for a
ZMQ socket.