Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mamuesp/mos-FS.Put-script

Encodes a file (or files in a directory) with base64 and transfers it via "mos call FS.Put" to a Mongoose-OS driven device.
https://github.com/mamuesp/mos-FS.Put-script

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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=\ --dest=\ [--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.