Dear all,
I'm wondering if there are plans to support 0MQ in MicroPython. If not, can somebody provide a hint of how to do so?
Best regards,
CM
0MQ for MicroPython
Re: 0MQ for MicroPython
criptomorxa wrote:Dear all,
I'm wondering if there are plans to support 0MQ in MicroPython. If not, can somebody provide a hint of how to do so?
Best regards,
CM
ZeroMQ has to do with the underlying operating system and micropython is OS agnostic and in fact can run on bare metal.
So the only question that makes sense wrt to micropython is “how do I create a wrapper for zeromq so that I can use it in micropython”.
And the answer to that is no different than “how can I create a uPy wrapper for XYZ C/C++ code”.
Sent from my iPhone using Tapatalk Pro
Re: 0MQ for MicroPython
Here is a link..
https://gitlab.com/librecube/prototypes ... /README.md
They had tried to port zeromq but walked away... with not much explanation... staying it is deprecated...
AFIK zmq is a wrapper around sockets especially the tcp, which frees you of the hassles of bind, select, loop etc.
if mqtt is supported then it zmq could be supported.
https://gitlab.com/librecube/prototypes ... /README.md
They had tried to port zeromq but walked away... with not much explanation... staying it is deprecated...
AFIK zmq is a wrapper around sockets especially the tcp, which frees you of the hassles of bind, select, loop etc.
if mqtt is supported then it zmq could be supported.
Re: 0MQ for MicroPython
We have (parts of) ZeroMQ implemented as a custom C++ module for the windows port. Would work for the unix port as well, probably any port for which the main ZeroMQ library works. It's a matter of wrapping the functions one needs so they can be used in MicroPython. Not too much work, there is a 'code dump' for all 100 or so ZMQ_XXX constants though. En result is we can write code which works both for CPython (with PyZMQ) and MicroPython so pretty covenient.