Page 1 of 1

Serial communication with pyb

Posted: Thu Oct 09, 2014 10:29 pm
by wjdp
I'm working on a project that will involve the pyboard communicating with another device running python over serial (USB or UART). I would like to serialise objects and send and receive them, pickle is not implemented for micropython yet. What options do I have?

Cheers,
Will

Re: Serial communication with pyb

Posted: Thu Oct 09, 2014 11:01 pm
by dhylands
There is a ujson module, and the full json module as well (I haven't personally used either).

Re: Serial communication with pyb

Posted: Thu Oct 09, 2014 11:38 pm
by wjdp
Cheers, having a look now. Is there a list of supported modules somewhere?

Re: Serial communication with pyb

Posted: Fri Oct 10, 2014 12:20 am
by dhylands
There are these: https://github.com/micropython/micropython-lib (which are all pure-python)

and there are these: https://github.com/micropython/micropyt ... ter/extmod