Publishes MQTT message message
on topic with address url
by
calling libcurl.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | url |
URL to MQTT server/topic. |
||
character(len=*), | intent(in), | target | :: | message |
Message to publish. |
|
integer, | intent(in), | optional | :: | timeout |
Connection timeout. |
|
character(len=:), | intent(out), | optional, | allocatable | :: | error_message |
cURL error message. |
integer, | intent(out), | optional | :: | error_curl |
cURL error code. |