home RPC:

uRPC micro Remote Procedure Calls - 0.97

» news | search | translate
Email Facebook Linkedin Pinterest Reddit Telegram Tumblr Whatsapp X

mqtt

 sends a message to a MQTT server.
Note: This endpoint can optionally receive user credentials. For security reasons, it is recommended to access this endpoint using HTTPS.

Arguments:
input                 structured message
ver                   31 | 311 | 50 for versions 3.1, 3.1.1, 5.0
qos                   0 | 1 | 2
You can provide the input data either via an HTTP GET request using the input query parameter (UTF-8 encoded), or via an HTTP POST request with the data in the request body (maximum 256 KB).

Input: at least 7 lines of text, separated by LF
server                host[:port]; default port 1883; TLS is enabled from port 8000 and up
user                  optional
password              optional
client_id             optional
retain                0 | 1
topic                 text (UTF-8)
message               text (UTF-8); from line 7 onwards

Endpoint:
http[s]://saltlake71.eu/urpc?function=mqtt