The Write Line command is very similar to the Write command. The difference is that the command is terminated when a
«cr» is received (or 512 bytes, whichever comes first).
You can write up to 512 bytes at a time with the Write Line command. If
num is omitted, then 512 bytes will be expected.
After the command is received,
num (or 512) bytes are expected to be received. Data is received raw (i.e. no escape sequences are required).
The Write Line command will terminate if a
«cr» is received, append the appropriate EOL (End Of Line) terminator (depending on the Read/Write Line Terminator setting), and write the data to the file.
By default, there is no time-out for how long it takes to send the data. This means that the uMMC will wait indefinitely for all the data to be sent.
If the value of the Write Time-out setting is greater than 0 (zero), then if the time taken between sending bytes exceeds that value (in tens of milliseconds), the Write command will terminate, write the accepted bytes to the file, and return to the command prompt. No EOL terminator will be written. No error will be returned.
fhis a file handle (1 - 4). Use the Free Handle command to get a free file handle.
numis the number of bytes to write to the file (1 → 512). Optional (if not given, 512 is assumed).
|An error occurred|
Write a line of text to a file (Setting “E” = 0 →
«cr» as EOL), on a uMMC:
Write a line of text to a file (Setting “E” = 2 →
«cr»«lf» as EOL), on a uMMC: