# Losing Track of Device When I  Disconnect

**URL:** https://community.cumulocity.com/t/losing-track-of-device-when-i-disconnect/77
**Category:** Forum
**Tags:** cumulocity
**Created:** [August 23, 2019, 1:41pm UTC](https://community.cumulocity.com/t/losing-track-of-device-when-i-disconnect/77 "2019-08-23T13:41:35Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Omer\_Timucin](https://avatars.discourse-cdn.com/v4/letter/o/49beb7/32.png) [@Omer\_Timucin](https://community.cumulocity.com/u/Omer_Timucin)
#### Post date: [August 23, 2019, 1:41pm UTC](https://community.cumulocity.com/t/losing-track-of-device-when-i-disconnect/77/1 "2019-08-23T13:41:35Z")

</div>

I followed the guides and created a device via MQTTBox. I published some measurements and can see the datapoints without problem.

When I drop the connection and reconnect even though I change nothing with MQTTBox options, my measurements do not go under the same device. They create new devices with different externalIds.

How can I continue to publish my result to the same device?

---

<div class="post-metadata">

### Author: ![Omer\_Timucin](https://avatars.discourse-cdn.com/v4/letter/o/49beb7/32.png) [@Omer\_Timucin](https://community.cumulocity.com/u/Omer_Timucin)
#### Post date: [August 27, 2019, 1:33pm UTC](https://community.cumulocity.com/t/losing-track-of-device-when-i-disconnect/77/2 "2019-08-27T13:33:10Z")

</div>

Found the problem. It was due to MQTTBox adding timestamp to the end of ClientId. So each time I disconnect and reconnect I got a new ClientId. Just unchecked “Append timestamp to MQTT client Id?”

---

<div class="post-metadata">

### Author: ![Michael\_Welsing](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@Michael\_Welsing](https://community.cumulocity.com/u/Michael_Welsing)
#### Post date: [September 9, 2019, 1:03pm UTC](https://community.cumulocity.com/t/losing-track-of-device-when-i-disconnect/77/3 "2019-09-09T13:03:33Z")

</div>

Hi Ömer,

great you found the issue. Please let us know if you need support with other questions.

best regards  
Michael

---

<div class="post-metadata">

### Author: ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)
#### Post date: [April 2, 2021, 3:43pm UTC](https://community.cumulocity.com/t/losing-track-of-device-when-i-disconnect/77/4 "2021-04-02T15:43:24Z")

</div>


