Skip to content

Commit

Permalink
Update Scripting-Language.md
Browse files Browse the repository at this point in the history
  • Loading branch information
thc08 authored Mar 19, 2024
1 parent ba5058a commit e8995b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/Scripting-Language.md
Original file line number Diff line number Diff line change
Expand Up @@ -953,9 +953,7 @@ The script itself is also stored on the file system with a default size of 8192
`frn("spath" "dpath")` rename a file
`flx(fname)` create download link for file (x=1 or 2) fname = file name of file to download
`fsm` return 1 if filesystem is mounted, (valid SD card found)
`res=fsi(sel)` gets file system information, sel=0 returns total media size, sel=1 returns free space both in kB
`fra(array fr)` reads array from open file with fr (assumes tab delimited entries)
`fwa(array fr (a))` writes array to open file with fr (writes tab delimited entries and line feed at end) the optional a parameter ommits the linefeed for appending arrays
`res=fsi(sel)` gets file system information, sel=0 returns total media size, sel=1 returns free space both in kB
`fz(fr)` returns file size
`fa(fr)` returns number of available bytes in open file stream
`fs(fr pos)` seek to file position pos
Expand All @@ -977,6 +975,8 @@ The script itself is also stored on the file system with a default size of 8192
`#define USE_SCRIPT_FATFS_EXT`
`fmd("fname")` make directory fname
`frd("fname")` remove directory fname
`fra(array fr)` reads array from open file with fr (assumes tab delimited entries)
`fwa(array fr (a))` writes array to open file with fr (writes tab delimited entries and line feed at end) the optional a parameter ommits the linefeed for appending arrays
`fx("fname")` check if file fname exists
`fe("fname")` execute script fname (max 2048 bytes, script must start with the '>' character on the first line)
`lfw("fname" payload limit)` logs a string (payload) to a file (fname) with size limit (limit) paylyoad is added to end of file together with a LF character. if file size is exceeded first line of file is removed.
Expand Down

0 comments on commit e8995b0

Please sign in to comment.