Closed kr-g closed 1 year ago
i did some more investigations here.
data_consumer
is a callback from MpFileExplorer
inherited from Pyboard.follow
method what will call again read_until
here it reads a single byte from the incoming stream and calls directly the consumer.
remark: UTF-8 is multi-byte
during startup my esp32 board returns (sometimes) crazy data causing mpfshell to fail
https://github.com/wendlers/mpfshell/blob/3ac8f401077971b2026e51f2c2180bd7b71157a5/mp/mpfshell.py#L554-L558