PowerBroker2/pySerialTransfer

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

StuartsProjects opened this issue · 1 comments

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 ?

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()