Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4853

General • Re: Downloading a log file from a RPi Pico

$
0
0
I would push the logs to a server instead of running a server on Pico.
I'd like to give that a try. I've tried to write directly to the server with something like this, but I'm unsure about how to address the server.

Code:

print("Download log...")log_file = open("smb://piserver/share/Programming/logfile.csv","r")    # not right but works in Linux file manager#log_file = open("//piserver/share/Programming/logfile.csv","r")   # doesn't work eitherlog = log_file.read()print(log)

Statistics: Posted by JKJ — Mon Nov 25, 2024 2:04 pm



Viewing all articles
Browse latest Browse all 4853

Trending Articles