Send file through serial port


Recommended Posts

Sure, but you'd have to script it. You'd use a combination of File. functions and serial functions. Read the file one line at a time using the file. functions and then write() the line to the serial port. You'll have to figure out some sort of protocol, however, to tell the remote site where the beginning and end of the file is, or you can send some command like "I'm sending a file and its xxx bytes long. Here it is:". Perhaps not that verbose, but you get the idea.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.