aiocoap-client

aiocoap-client is a simple command-line tool for interacting with CoAP servers

usage: aiocoap-client [-h] [--non] [-m METHOD] [--observe]
                      [--observe-exec CMD] [--accept MIME]
                      [--proxy HOST[:PORT]] [--payload X]
                      [--content-format MIME] [-v] [-q] [--dump FILE]
                      [--interactive] [--credentials CREDENTIALS]
                      url

Positional Arguments

url CoAP address to fetch

Named Arguments

–non

Send request as non-confirmable (NON) message

Default: False

-m, –method

Name or number of request method to use (default: “GET”)

Default: “GET”

–observe

Register an observation on the resource

Default: False

–observe-exec Run the specified program whenever the observed resource changes, feeding the response data to its stdin
–accept Content format to request
–proxy Relay the CoAP request to a proxy for execution
–payload Send X as payload in POST or PUT requests. If X starts with an ‘@’, its remainder is treated as a file name and read from.
–content-format
 Content format sent via POST or PUT
-v, –verbose Increase the debug output
-q, –quiet Decrease the debug output
–dump Log network traffic to FILE
–interactive

Enter interactive mode

Default: False

–credentials Load credentials to use from a given file