Skip to content

Encodes a file (or files in a directory) with base64 and transfers it via "mos call FS.Put" to a Mongoose-OS driven device.

License

Notifications You must be signed in to change notification settings

mamuesp/mos-FS.Put-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

mos-FS.Put-script

Reads a single file (files of an directory, one by one), encodes it with base64 and transfers it via "mos call FS.Put" (RPC) to the Mongoose-OS driven device The lines are transferred one by one, so there is no problem with any chunk size limits. If a directory name is given as source, it will transfer all allowed files found in the driectory.

Allowed file types: (MIME)

  • application/x-gzip
  • text/html
  • text/plain
  • text/css
  • text/javascript
  • text/json
  • application/octet-stream
  • image/svg

Usage: mosPutFile.sh --src=<name> --dest=<name> [--p=] [--verbose]

	- "src" might be a file or a directory
	- "dest" has to be a single diretory name e.g."/mnt"

Use at your own risk! (see license disclaimer). Publisehd under the MIT license.

About

Encodes a file (or files in a directory) with base64 and transfers it via "mos call FS.Put" to a Mongoose-OS driven device.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages