---
title: "Comment by Marcio Alencar on \"MQTT and MAM: Sending temperature and humidity data to the IOTA Tangle\" | Hashnode"
description: "provider, &quot;&quot; -&gt;&gt; provider: &quot;&quot; const client = mqtt.connect( ${brokerUrl}:${port} ); -&gt;&gt; const client = mqtt.connect( mqtt://${bro"
url: "https://hashnode.com/posts/mqtt-and-mam-sending-temperature-and-humidity-data-to-the-iota-tangle/5e0d852b588ef29727358fdc/comment/5e6d465db302cf0e5bda1503"
---

[Discussion](https://hashnode.com/posts/mqtt-and-mam-sending-temperature-and-humidity-data-to-the-iota-tangle/5e0d852b588ef29727358fdc)

Comment [MQTT and MAM: Sending temperature and humidity data to the IOTA Tangle](https://hashnode.com/posts/mqtt-and-mam-sending-temperature-and-humidity-data-to-the-iota-tangle/5e0d852b588ef29727358fdc)

[Marcio Alencar](https://hashnode.com/@macalencar)

[Mar 14, 2020](https://hashnode.com/posts/mqtt-and-mam-sending-temperature-and-humidity-data-to-the-iota-tangle/5e0d852b588ef29727358fdc/comment/5e6d465db302cf0e5bda1503)

provider, "" ->> provider: ""

const client = mqtt.connect(`${brokerUrl}:${port}`); ->> const client = mqtt.connect(`mqtt://${brokerUrl}:${port}`);

[Peter Okwara](https://hashnode.com/@peterokwara)

[Apr 19, 2020](https://hashnode.com/posts/mqtt-and-mam-sending-temperature-and-humidity-data-to-the-iota-tangle/5e0d852b588ef29727358fdc/comment/5e6d465db302cf0e5bda1503#reply-5e9ccfd74248eaef4322862e)

Did it work?
