dm_mqtt_url Function

public function dm_mqtt_url(host, topic, port) result(url)

Returns allocatable string of URL to MQTT server. Uses the URL API of libcurl to create the URL. If port is 0, the default port will be used. The topic must start with character /.

On error, an empty string is returned.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: host

IP or FQDN of MQTT server.

character(len=*), intent(in) :: topic

MQTT topic.

integer, intent(in), optional :: port

MQTT server port (1883 by default).

Return Value character(len=:), allocatable

Created URL.


Calls

proc~~dm_mqtt_url~~CallsGraph proc~dm_mqtt_url dm_mqtt_url curl_url curl_url proc~dm_mqtt_url->curl_url curl_url_cleanup curl_url_cleanup proc~dm_mqtt_url->curl_url_cleanup curl_url_get curl_url_get proc~dm_mqtt_url->curl_url_get curl_url_set curl_url_set proc~dm_mqtt_url->curl_url_set interface~dm_itoa dm_itoa proc~dm_mqtt_url->interface~dm_itoa