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: 3 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
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
4 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy