Skip to content

Binary over USB/serial #11889

Closed Answered by stephanelsmith
stephanelsmith asked this question in ESP32
Discussion options

You must be logged in to vote

First, thank you for the response. First yes, it works. Now that I've found shared/runtime/sys_stdio_mphal.c I can see it.

I'm using asyncio, this seems to do the trick:
asyncio.StreamReader(sys.stdin.buffer)

From there on out, my readinto's are working as expected.

Still feels quite quirky as I would expect readintos to straight up copy byte for byte, but this will do.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@robert-hh
Comment options

@stephanelsmith
Comment options

Answer selected by stephanelsmith
@jimmo
Comment options

@stephanelsmith
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
ESP32
Labels
None yet
3 participants