aiocoap-fileserver

A simple file server that serves the contents of a given directory in a read-only fashion via CoAP. It provides directory listings, and guesses the media type of files it serves.

usage: aiocoap-fileserver [-h] [-v] [--register [RD-URI]] [--bind BIND]
                          [--credentials CREDENTIALS]
                          [--tls-server-certificate CRT]
                          [--tls-server-key KEY]
                          [path]

Positional Arguments

path

Root directory of the server

Default: .

Named Arguments

-v, --verbose

Be more verbose (repeat to debug)

Default: 0

--register

Register with a Resource directory

Default: False

--bind Host and/or port to bind to (see –help-bind for details)
--credentials JSON file pointing to credentials for the server’s identity/ies.
--tls-server-certificate
 TLS certificate (chain) to present to connecting clients (in PEM format)
--tls-server-key
 TLS key to load that supports the server certificate