# MQTT Publish subscribe with the device

**URL:** <https://community.hivemq.com/t/mqtt-publish-subscribe-with-the-device/722>\
**Category:** Uncategorized\
**Created:** [September 16, 2021, 5:48am UTC](https://community.hivemq.com/t/mqtt-publish-subscribe-with-the-device/722 "2021-09-16T05:48:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rakshith](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@rakshith](https://community.hivemq.com/u/rakshith)\
**Post date:** [September 16, 2021, 5:48am UTC](https://community.hivemq.com/t/mqtt-publish-subscribe-with-the-device/722/1 "2021-09-16T05:48:43Z")

</div>

Hi,

I am using HiveMQ broker for MQTT communication with my IOT device,  
My device is able to communicate perfectly fine with HiveMQ Public Broker settings,  
Host: [broker.hivemq.com](http://broker.hivemq.com)  
TCP Port: 1883  
I can also see the messages using HivMQ Webclient,

But when i use the private account settings i don’t see my device communicate,  
Below are the settings i am using on my IOT device,  
Hostname: xxxxxxxxxx8a46eb9c9d93232051305f.s1.eu.hivemq.cloud  
Port: 8883

Help would be required here,

regards

---

<div class="post-metadata">

**Author:** ![zingiber](https://avatars.discourse-cdn.com/v4/letter/z/ce73a5/32.png) [@zingiber](https://community.hivemq.com/u/zingiber)\
**Post date:** [September 16, 2021, 11:32am UTC](https://community.hivemq.com/t/mqtt-publish-subscribe-with-the-device/722/2 "2021-09-16T11:32:04Z")

</div>

Hey rakshith,

nice to see you exploring MQTT. Can you share some details on the client’s connection attempts?  
Does it produce any output? Is the IOT device capable of establishing SSL secured connections?

Kind regards,  
Finn

---

<div class="post-metadata">

**Author:** ![rakshith](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@rakshith](https://community.hivemq.com/u/rakshith)\
**Post date:** [September 16, 2021, 12:52pm UTC](https://community.hivemq.com/t/mqtt-publish-subscribe-with-the-device/722/3 "2021-09-16T12:52:55Z")

</div>

Hey Finn

I am using [vcon.io](http://vcon.io) cloud platform for device management,  
I am able to communicate with HiveMQ Public Broker,  
Below are the configuration shadow of the device,  
You can refer to mqtt section for the details  
Yes it has option for certificate and key as you can see below in shadow,  
more details is also available in below url,  
[VCON::Docs](https://vcon.io/docs/#send-data-to-mqtt)

{  
“wifi”: {  
“mode”: 1,  
“ap”: {  
“ssid”: “vcon-???”  
},  
“sta”: {  
“ssid”: “AndroidAP99C2”,  
“pass”: “dsnt0523”  
}  
},  
“dash”: {  
“url”: “wss://dash.vcon.io/api/v3/rpc”,  
“pass”: “W/C0yMK71RgW6SeCcNNy9lajERoA”  
},  
“debug”: {  
“level”: “3,sock=2”,  
“udpaddr”: “”,  
“tlslevel”: 1  
},  
“device”: {  
“id”: “”,  
“board”: “”,  
“dns”: “”  
},  
“rpc”: {  
“safe”: “config.set,rpc._,sys._”  
},  
“host”: {  
“arch”: 300,  
“rst”: -1,  
“mode”: 2,  
“addr”: 0,  
“uart”: {  
“rx”: 18,  
“tx”: 5,  
“cts”: -1,  
“rts”: -1,  
“baud”: 115200  
},  
“spi”: {  
“miso”: -1,  
“mosi”: -1,  
“clk”: -1,  
“freq”: 50000  
},  
“updi”: {  
“pin”: -1,  
“dur”: 50  
},  
“swd”: {  
“io”: -1,  
“clk”: -1,  
“dur”: 50  
}  
},  
“mqtt”: {  
“url”: “64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud:8883”,  
“rx”: “sensors/rx”,  
“tx”: “sensors/tx”,  
“cert”: “”,  
“key”: “”,  
“hexdump”: 0  
},  
“ws”: {  
“url”: “”,  
“hdrs”: “”,  
“cert”: “”,  
“key”: “”,  
“hexdump”: 0  
},  
“ble”: {  
“mode”: 1,  
“filter”: “”,  
“lowat”: 0  
},  
“eth”: {  
“mode”: 0,  
“addr”: -1,  
“clk”: 0,  
“mdc”: -1,  
“mdio”: -1,  
“pwr”: -1  
},  
“cell”: {  
“mode”: 0,  
“rx”: -1,  
“tx”: -1,  
“rst”: 0,  
“baud”: 115200,  
“apn”: “”,  
“user”: “”,  
“pass”: “”  
},  
“pins”: {  
“factory”: -1,  
“status”: -1  
}  
}

---

<div class="post-metadata">

**Author:** ![rakshith](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@rakshith](https://community.hivemq.com/u/rakshith)\
**Post date:** [September 16, 2021, 1:10pm UTC](https://community.hivemq.com/t/mqtt-publish-subscribe-with-the-device/722/4 "2021-09-16T13:10:39Z")

</div>

Hey Jen,

Below is the device log for your analysis

e[0;32mI (768) cpu\_start: ESP-IDF: v4.3e[0m  
e[0;32mI (773) heap\_init: Initializing. RAM available for dynamic allocation:e[0m  
e[0;32mI (780) heap\_init: At 3FF80000 len 00002000 (8 KiB): RTCRAMe[0m  
e[0;32mI (786) heap\_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAMe[0m  
e[0;32mI (792) heap\_init: At 3FFB6388 len 00001C78 (7 KiB): DRAMe[0m  
e[0;32mI (798) heap\_init: At 3FFB9A20 len 00004108 (16 KiB): DRAMe[0m  
e[0;32mI (804) heap\_init: At 3FFCAC90 len 00015370 (84 KiB): DRAMe[0m  
e[0;32mI (811) heap\_init: At 3FFE0440 len 0001FBC0 (126 KiB): D/IRAMe[0m  
e[0;32mI (817) heap\_init: At 40078000 len 00008000 (32 KiB): IRAMe[0m  
e[0;32mI (823) heap\_init: At 4009F434 len 00000BCC (2 KiB): IRAMe[0m  
e[0;32mI (830) spi\_flash: detected chip: winbonde[0m  
e[0;32mI (834) spi\_flash: flash io: dioe[0m  
e[0;32mI (838) sleep: Configure to isolate all GPIO pins in sleep statee[0m  
e[0;32mI (845) sleep: Enable automatic switching of GPIO sleep configuratione[0m  
e[0;32mI (852) cpu\_start: Starting scheduler on PRO CPU.e[0m  
1970-01-01 00:00:00 I esp32.c:174:fs\_init FS /spiffs, 0, ram 210944  
1970-01-01 00:00:00 I config.c:235:config\_init /spiffs/config.json → {  
“wifi”: {  
“sta”: {  
“ssid”: “AndroidAP99C2”,  
“pass”: “dsnt0523”  
}  
},  
“dash”: {  
“pass”: “W/C0yMK71RgW6SeCcNNy9lajERoA”  
},  
“host”: {  
“arch”: 300,  
“mode”: 2,  
“uart”: {  
“rx”: 18,  
“tx”: 5  
}  
},  
“mqtt”: {  
“url”: “64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud:8883”,  
“rx”: “sensors/rx”,  
“tx”: “sensors/tx”  
},  
“pins”: {  
“factory”: -1,  
“status”: -1  
}  
}  
, ok  
1970-01-01 00:00:00 net.c:186:timer\_cb net\_down, ram: 210464, 0/0/0/0  
1970-01-01 00:00:00 I net.c:447:net\_init Initialised. Version 2.0.2  
1970-01-01 00:00:00 I esp32.c:465:wifi\_init SDK v4.3, Jul 15 2021 11:12:20, 2.0.2  
I (1074) wifi:wifi driver task: 3ffd09c8, prio:23, stack:6656, core=0  
e[0;32mI (1074) system\_api: Base MAC address is not sete[0m  
e[0;32mI (1074) system\_api: read default base MAC address from EFUSEe[0m  
I (1084) wifi:wifi firmware version: c7d0450  
I (1084) wifi:wifi certification version: v7.0  
I (1084) wifi:config NVS flash: enabled  
I (1084) wifi:config nano formating: disabled  
I (1094) wifi:Init data frame dynamic rx buffer num: 32  
I (1094) wifi:Init management frame dynamic rx buffer num: 32  
I (1104) wifi:Init management short buffer num: 32  
I (1104) wifi:Init dynamic tx buffer num: 32  
I (1114) wifi:Init static rx buffer size: 1600  
I (1114) wifi:Init static rx buffer num: 10  
I (1124) wifi:Init dynamic rx buffer num: 32  
e[0;32mI (1124) wifi\_init: rx ba win: 6e[0m  
e[0;32mI (1124) wifi\_init: tcpip mbox: 32e[0m  
e[0;32mI (1134) wifi\_init: udp mbox: 6e[0m  
e[0;32mI (1134) wifi\_init: tcp mbox: 6e[0m  
e[0;32mI (1144) wifi\_init: tcp tx win: 5744e[0m  
e[0;32mI (1144) wifi\_init: tcp rx win: 5744e[0m  
e[0;32mI (1144) wifi\_init: tcp mss: 1440e[0m  
e[0;32mI (1154) wifi\_init: WiFi IRAM OP enablede[0m  
e[0;32mI (1154) wifi\_init: WiFi RX IRAM OP enablede[0m  
1970-01-01 00:00:00 I esp32.c:499:wifi\_init Connecting to WiFi network AndroidAP99C2…  
e[0;32mI (1174) phy\_init: phy\_version 4670,719f9f6,Feb 18 2021,17:07:07e[0m  
I (1254) wifi:mode : sta (a4:cf:12:6d:d4:34)  
I (1264) wifi:enable tsf  
1970-01-01 00:00:00 E esp32.c:321:eh wifi sta start…  
e[0;32mI (1264) BTDM\_INIT: BT controller compile version [1342a48]e[0m  
I (1274) wifi:new:\<1,0\>, old:\<1,0\>, ap:\<255,255\>, sta:\<1,0\>, prof:1  
I (1274) wifi:state: init → auth (b0)  
I (1284) wifi:state: auth → assoc (0)  
I (1284) wifi:state: assoc → run (10)  
I (1324) wifi:connected with AndroidAP99C2, aid = 1, channel 1, BW20, bssid = 5a:ec:f1:db:4e:be  
I (1324) wifi:security: WPA2-PSK, phy: bgn, rssi: -33  
I (1324) wifi:pm start, type: 1

I (1334) wifi:AP’s beacon interval = 102400 us, DTIM period = 2  
W (1544) wifi:idx:0 (ifx:0, 5a:ec:f1:db:4e:be), tid:0, ssn:0, winSize:64  
1970-01-01 00:00:00 ble.c:210:gatts\_eh REG\_EVT, iface 3  
1970-01-01 00:00:00 ble.c:192:regservice 0 (success)  
1970-01-01 00:00:00 I ble.c:47:advertise advertising as: [vcon-d434]  
1970-01-01 00:00:00 ble.c:220:gatts\_eh CREAT\_TAB, status 0, numh 5, r 0  
1970-01-01 00:00:00 I ble.c:298:ble\_init 1970-01-01 00:00:00 ble.c:114:gap\_eh UNKNOWN ev 0 0x3ffdd61c  
BLE initialised, mode 1; codes 0 0 0  
1970-01-01 1970-01-01 00:00:00 I esp32.c:272:uart\_open 0: -1/-1/115200, 0 0 0  
1970-01-01 00:00:00 I esp32.c:272:uart\_open 1: 5/18/115200, 0 0 0  
1970-01-01 00:00:01 I esp32.c:340:eh WiFi connected, IP 192.168.84.250  
1970-01-01 00:00:01 I net.c:103:network\_status\_ network net\_up  
e[0;32mI (2564) esp\_netif\_handlers: sta ip: 192.168.84.250, mask: 255.255.255.0, gw: 192.168.84.232e[0m  
1970-01-01 00:00:02 net.c:186:timer\_cb net\_up, ram: 134332, 0/0/0/0  
1970-01-01 00:00:02 E sntp.c:53:mg\_sntp\_send 1 wait until resolved  
1970-01-01 00:00:02 tls.c:82:mg\_tls\_init 3 Setting TLS, CA: /spiffs/ca.pem, cert: -, key: -  
1970-01-01 00:00:02 dns.c:165:dns\_cb 1 [time.google.com](http://time.google.com) resolved to 216.239.35.8  
1970-01-01 00:00:02 sntp.c:60:mg\_sntp\_send 0x37 request sent, ct 2, next at 3602  
W (3814) wifi:idx:1 (ifx:0, 5a:ec:f1:db:4e:be), tid:4, ssn:0, winSize:64  
1970-01-01 00:00:03 I net.c:121:sntp\_cb SNTP: setting time to 1631797411.1875707929  
2021-09-16 13:34:46 sntp.c:39:sntp\_cb 1631797411.1875707929, next at 1631801011  
2021-09-16 13:34:47 net.c:186:timer\_cb net\_up, ram: 128724, 1/0/0/0  
2021-09-16 13:34:48 net.c:186:timer\_cb net\_up, ram: 128724, 1/0/0/0  
2021-09-16 13:34:49 net.c:186:timer\_cb net\_up, ram: 128720, 1/0/0/0  
2021-09-16 13:34:49 E event.c:18:mg\_error 3 DNS timeout  
2021-09-16 13:34:49 I net.c:103:network\_status\_ network cloud\_down  
2021-09-16 13:34:49 I net.c:80:dev\_cb cloud disconnected, ram 128736  
2021-09-16 13:34:50 net.c:186:timer\_cb cloud\_down, ram: 131984, 0/0/0/0  
2021-09-16 13:34:50 tls.c:82:mg\_tls\_init 4 Setting TLS, CA: /spiffs/ca.pem, cert: -, key: -  
2021-09-16 13:34:50 dns.c:165:dns\_cb 4 [dash.vcon.io](http://dash.vcon.io) resolved to 176.9.217.245  
2021-09-16 13:34:52 net.c:186:timer\_cb cloud\_down, ram: 110652, 1/0/0/0  
2021-09-16 13:34:53 tls.c:39:mg\_tls\_handshake 4 success  
2021-09-16 13:34:53 net.c:186:timer\_cb cloud\_down, ram: 119340, 1/0/0/0  
2021-09-16 13:34:53 I net.c:103:network\_status\_ network cloud\_up  
2021-09-16 13:34:53 I esp32.c:55:ota\_commit Commiting this firmware…  
2021-09-16 13:34:53 I net.c:55:dev\_cb cloud connected, wss://dash.vcon.io/api/v3/rpc, ram 119128  
2021-09-16 13:34:53 net.c:383:net\_conn\_writer WS OUT: {“method”:“state.set”,“params”:{“reset”:“power-on”,“backtrace”:"",“ota”:{“percent”:null,“version”:“2.0.2”,“built”:“2021-07-15 11:11:42”,“mac”:“a4:cf:12:6d:d4:34”},“config”:{“wifi”:{“mode”:1,“ap”:{“ssid”:“vcon-???”},“sta”:{“ssid”:“AndroidAP99C2”,“pass”:“dsnt0523”}},“dash”:{“url”:“wss://dash.vcon.io/api/v3/rpc”,“pass”:“W/C0yMK71RgW6SeCcNNy9lajERoA”},“debug”:{“level”:“3,sock=2”,“udpaddr”:"",“tlslevel”:1},“device”:{“id”:"",“board”:"",“dns”:""},“rpc”:{“safe”:“config.set,rpc._,sys._”},“host”:{“arch”:300,“rst”:-1,“mode”:2,“addr”:0,“uart”:{“rx”:18,“tx”:5,“cts”:-1,“rts”:-1,“baud”:115200},“spi”:{“miso”:-1,“mosi”:-1,“clk”:-1,“freq”:50000},“updi”:{“pin”:-1,“dur”:50},“swd”:{“io”:-1,“clk”:-1,“dur”:50}},“mqtt”:{“url”:“64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud:8883”,“rx”:“sensors/rx”,“tx”:“sensors/tx”,“cert”:"",“key”:"",“hexdump”:0},“ws”:{“url”:"",“hdrs”:"",“cert”:"",“key”:"",“hexdump”:0},“ble”:{“mode”:1,“filter”:"",“lowat”:0},“eth”:{“mode”:0,“addr”:-1,“clk”:0,“mdc”:-1,“mdio”:-1,“pwr”:-1},“cell”:{“mode”:0,  
2021-09-16 13:34:54 net.c:186:timer\_cb cloud\_up, ram: 119340, 1/0/0/0  
2021-09-16 13:34:54 dns.c:165:dns\_cb 5 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:34:55 net.c:186:timer\_cb cloud\_up, ram: 118928, 1/0/0/0  
2021-09-16 13:34:56 dns.c:165:dns\_cb 6 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:34:56 net.c:186:timer\_cb cloud\_up, ram: 119256, 1/0/0/0  
2021-09-16 13:34:56 dns.c:165:dns\_cb 7 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:34:57 net.c:186:timer\_cb cloud\_up, ram: 118976, 1/0/0/0  
2021-09-16 13:34:57 ws.c:139:mg\_ws\_cb WS PONG  
2021-09-16 13:34:57 dns.c:165:dns\_cb 8 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:34:58 net.c:186:timer\_cb cloud\_up, ram: 119256, 1/0/0/0  
2021-09-16 13:34:58 dns.c:165:dns\_cb 9 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:34:59 net.c:186:timer\_cb cloud\_up, ram: 118928, 1/0/0/0  
2021-09-16 13:34:59 dns.c:165:dns\_cb 10 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:35:00 net.c:186:timer\_cb cloud\_up, ram: 118924, 1/0/0/0  
2021-09-16 13:35:00 dns.c:165:dns\_cb 11 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:35:01 net.c:186:timer\_cb cloud\_up, ram: 118928, 1/0/0/0  
2021-09-16 13:35:01 dns.c:165:dns\_cb 12 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:35:02 net.c:186:timer\_cb cloud\_up, ram: 118924, 1/0/0/0  
2021-09-16 13:35:02 ws.c:139:mg\_ws\_cb WS PONG  
2021-09-16 13:35:02 dns.c:165:dns\_cb 13 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:35:03 net.c:186:timer\_cb cloud\_up, ram: 118932, 1/0/0/0  
2021-09-16 13:35:03 dns.c:165:dns\_cb 14 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:35:04 net.c:186:timer\_cb cloud\_up, ram: 119256, 1/0/0/0  
2021-09-16 13:35:04 dns.c:165:dns\_cb 15 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:35:05 net.c:186:timer\_cb cloud\_up, ram: 117236, 1/1/0/0  
2021-09-16 13:35:06 net.c:186:timer\_cb cloud\_up, ram: 119256, 1/0/0/0  
2021-09-16 13:35:07 dns.c:165:dns\_cb 16 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:35:07 ws.c:139:mg\_ws\_cb WS PONG  
2021-09-16 13:35:07 net.c:186:timer\_cb cloud\_up, ram: 117436, 1/0/0/0  
2021-09-16 13:35:08 dns.c:165:dns\_cb 17 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:35:08 net.c:186:timer\_cb cloud\_up, ram: 117232, 1/1/0/0  
2021-09-16 13:35:09 net.c:186:timer\_cb cloud\_up, ram: 119256, 1/0/0/0  
2021-09-16 13:35:09 dns.c:165:dns\_cb 18 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:35:10 net.c:186:timer\_cb cloud\_up, ram: 118928, 1/0/0/0  
2021-09-16 13:35:10 dns.c:165:dns\_cb 19 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:35:11 net.c:186:timer\_cb cloud\_up, ram: 118928, 1/0/0/0  
2021-09-16 13:35:11 dns.c:165:dns\_cb 20 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:35:12 ws.c:139:mg\_ws\_cb WS PONG  
2021-09-16 13:35:12 net.c:186:timer\_cb cloud\_up, ram: 118388, 1/0/0/0  
2021-09-16 13:35:12 dns.c:165:dns\_cb 21 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 52.31.149.80  
2021-09-16 13:35:13 net.c:186:timer\_cb cloud\_up, ram: 116608, 1/1/0/0  
2021-09-16 13:35:14 net.c:186:timer\_cb cloud\_up, ram: 118928, 1/0/0/0  
2021-09-16 13:35:14 dns.c:165:dns\_cb 22 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:35:15 net.c:186:timer\_cb cloud\_up, ram: 118928, 1/0/0/0  
2021-09-16 13:35:15 dns.c:165:dns\_cb 23 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:35:16 net.c:186:timer\_cb cloud\_up, ram: 118928, 1/0/0/0  
2021-09-16 13:35:16 dns.c:165:dns\_cb 24 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:35:17 net.c:186:timer\_cb cloud\_up, ram: 118652, 1/0/0/0  
2021-09-16 13:35:17 ws.c:139:mg\_ws\_cb WS PONG  
2021-09-16 13:35:18 dns.c:165:dns\_cb 25 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:35:18 net.c:186:timer\_cb cloud\_up, ram: 117224, 1/1/0/0  
2021-09-16 13:35:19 net.c:186:timer\_cb cloud\_up, ram: 119252, 1/0/0/0  
2021-09-16 13:35:19 dns.c:165:dns\_cb 26 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:35:20 net.c:186:timer\_cb cloud\_up, ram: 119252, 1/0/0/0  
2021-09-16 13:35:20 dns.c:165:dns\_cb 27 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:35:21 net.c:186:timer\_cb cloud\_up, ram: 118928, 1/0/0/0  
2021-09-16 13:35:21 dns.c:165:dns\_cb 28 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:35:22 net.c:186:timer\_cb cloud\_up, ram: 118972, 1/0/0/0  
2021-09-16 13:35:22 ws.c:139:mg\_ws\_cb WS PONG  
2021-09-16 13:35:22 dns.c:165:dns\_cb 29 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:35:23 net.c:186:timer\_cb cloud\_up, ram: 118928, 1/0/0/0  
2021-09-16 13:35:24 dns.c:165:dns\_cb 30 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 46.137.47.218  
2021-09-16 13:35:24 net.c:186:timer\_cb cloud\_up, ram: 117232, 1/1/0/0  
2021-09-16 13:35:25 net.c:186:timer\_cb cloud\_up, ram: 119252, 1/0/0/0  
2021-09-16 13:35:26 dns.c:165:dns\_cb 31 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:35:26 net.c:186:timer\_cb cloud\_up, ram: 118928, 1/0/0/0  
2021-09-16 13:35:27 dns.c:165:dns\_cb 32 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:35:27 net.c:186:timer\_cb cloud\_up, ram: 117236, 1/1/0/0  
2021-09-16 13:35:27 ws.c:139:mg\_ws\_cb WS PONG  
2021-09-16 13:35:28 net.c:186:timer\_cb cloud\_up, ram: 119256, 1/0/0/0  
2021-09-16 13:35:28 dns.c:165:dns\_cb 33 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:35:29 net.c:186:timer\_cb cloud\_up, ram: 118928, 1/0/0/0  
2021-09-16 13:35:30 dns.c:165:dns\_cb 34 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:35:30 net.c:186:timer\_cb cloud\_up, ram: 118928, 1/0/0/0  
2021-09-16 13:35:30 dns.c:165:dns\_cb 35 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 46.137.47.218  
2021-09-16 13:35:31 net.c:186:timer\_cb cloud\_up, ram: 118928, 1/0/0/0  
2021-09-16 13:35:32 dns.c:165:dns\_cb 36 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:35:32 ws.c:139:mg\_ws\_cb WS PONG  
2021-09-16 13:35:32 net.c:186:timer\_cb cloud\_up, ram: 115516, 1/1/0/0  
2021-09-16 13:35:33 net.c:186:timer\_cb cloud\_up, ram: 119256, 1/0/0/0  
2021-09-16 13:35:34 dns.c:165:dns\_cb 37 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:35:34 net.c:186:timer\_cb cloud\_up, ram: 118928, 1/0/0/0  
2021-09-16 13:35:34 dns.c:165:dns\_cb 38 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:35:35 net.c:186:timer\_cb cloud\_up, ram: 118928, 1/0/0/0  
2021-09-16 13:35:35 dns.c:165:dns\_cb 39 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:35:36 net.c:186:timer\_cb cloud\_up, ram: 118928, 1/0/0/0  
2021-09-16 13:35:36 dns.c:165:dns\_cb 40 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:35:37 net.c:186:timer\_cb cloud\_up, ram: 118928, 1/0/0/0  
2021-09-16 13:35:37 ws.c:139:mg\_ws\_cb WS PONG  
2021-09-16 13:35:37 dns.c:165:dns\_cb 41 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:35:38 net.c:186:timer\_cb cloud\_up, ram: 118932, 1/0/0/0  
2021-09-16 13:35:39 dns.c:165:dns\_cb 42 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 46.137.47.218  
2021-09-16 13:35:39 net.c:186:timer\_cb cloud\_up, ram: 118928, 1/0/0/0  
2021-09-16 13:35:39 dns.c:165:dns\_cb 43 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:35:40 net.c:186:timer\_cb cloud\_up, ram: 118932, 1/0/0/0  
2021-09-16 13:35:40 dns.c:165:dns\_cb 44 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:35:41 net.c:186:timer\_cb cloud\_up, ram: 118932, 1/0/0/0  
2021-09-16 13:35:41 dns.c:165:dns\_cb 45 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:35:42 ws.c:139:mg\_ws\_cb WS PONG  
2021-09-16 13:35:42 net.c:186:timer\_cb cloud\_up, ram: 117444, 1/0/0/0  
2021-09-16 13:35:43 dns.c:165:dns\_cb 46 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:35:43 net.c:186:timer\_cb cloud\_up, ram: 118724, 1/1/0/0  
2021-09-16 13:35:44 net.c:186:timer\_cb cloud\_up, ram: 119256, 1/0/0/0  
2021-09-16 13:35:44 dns.c:165:dns\_cb 47 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:35:45 net.c:186:timer\_cb cloud\_up, ram: 118928, 1/0/0/0  
2021-09-16 13:35:45 dns.c:165:dns\_cb 48 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:35:46 net.c:186:timer\_cb cloud\_up, ram: 118928, 1/0/0/0  
2021-09-16 13:35:46 dns.c:165:dns\_cb 49 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:35:47 ws.c:139:mg\_ws\_cb WS PONG  
2021-09-16 13:35:47 net.c:186:timer\_cb cloud\_up, ram: 118388, 1/0/0/0  
2021-09-16 13:35:47 dns.c:165:dns\_cb 50 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:35:48 net.c:186:timer\_cb cloud\_up, ram: 119252, 1/0/0/0  
2021-09-16 13:35:49 dns.c:165:dns\_cb 51 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 46.137.47.218  
2021-09-16 13:35:49 net.c:186:timer\_cb cloud\_up, ram: 117236, 1/1/0/0  
2021-09-16 13:35:50 net.c:186:timer\_cb cloud\_up, ram: 119252, 1/0/0/0  
2021-09-16 13:35:50 dns.c:165:dns\_cb 52 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 54.73.92.158  
2021-09-16 13:35:51 net.c:186:timer\_cb cloud\_up, ram: 118928, 1/0/0/0  
2021-09-16 13:35:51 dns.c:165:dns\_cb 53 64275fb8ba8a46eb9c9d93232051305f.s1.eu.hivemq.cloud resolved to 46.137.47.218  
2021-09-16 13:35:52 net.c:186:timer\_cb cloud\_up, ram: 118648, 1/0/0/0

---

<div class="post-metadata">

**Author:** ![Raihan](https://avatars.discourse-cdn.com/v4/letter/r/aca169/32.png) [@Raihan](https://community.hivemq.com/u/Raihan)\
**Post date:** [October 14, 2022, 11:25am UTC](https://community.hivemq.com/t/mqtt-publish-subscribe-with-the-device/722/5 "2022-10-14T11:25:06Z")

</div>

dude format for the url is - username:password@host:domain
