dm_mqtt_publish Function

public function dm_mqtt_publish(url, message, timeout, error_message, error_curl) result(rc)

Publishes MQTT message message on topic with address url by calling libcurl.

Arguments

Type IntentOptional 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.

Return Value integer


Calls

proc~~dm_mqtt_publish~~CallsGraph proc~dm_mqtt_publish dm_mqtt_publish curl_easy_cleanup curl_easy_cleanup proc~dm_mqtt_publish->curl_easy_cleanup curl_easy_init curl_easy_init proc~dm_mqtt_publish->curl_easy_init curl_easy_perform curl_easy_perform proc~dm_mqtt_publish->curl_easy_perform curl_easy_setopt curl_easy_setopt proc~dm_mqtt_publish->curl_easy_setopt curl_easy_strerror curl_easy_strerror proc~dm_mqtt_publish->curl_easy_strerror