Serial communication with pyb

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
wjdp
Posts: 5
Joined: Thu Oct 09, 2014 2:46 pm

Serial communication with pyb

Post by wjdp » Thu Oct 09, 2014 10:29 pm

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

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Serial communication with pyb

Post by dhylands » Thu Oct 09, 2014 11:01 pm

There is a ujson module, and the full json module as well (I haven't personally used either).

wjdp
Posts: 5
Joined: Thu Oct 09, 2014 2:46 pm

Re: Serial communication with pyb

Post by wjdp » Thu Oct 09, 2014 11:38 pm

Cheers, having a look now. Is there a list of supported modules somewhere?

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Serial communication with pyb

Post by dhylands » Fri Oct 10, 2014 12:20 am

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

Post Reply