Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are there any examples showing how to save received file to a PC folder. #69

Open
StuartsProjects opened this issue Oct 18, 2023 · 1 comment

Comments

@StuartsProjects
Copy link

I have the example rx_file.py working receiving the array from an Arduino DUE using the example uart_tx_file.ino.

Are there any examples that show how to save the array\file as an actual disk file to a folder on the PC running the python receiver ?

@inmerso
Copy link
Contributor

inmerso commented Nov 9, 2023

HI StuartsProjects, I did that in one of my applications using logging:
import logging
I've configured the logger (i.e. log formatting, target log file) at the beggining of main. Then for every received message I substitute print() with logger.info()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants