Cumulocity MQTT client

Hi,
I am trying to connect cumulocity mqtt client through java code but the issue is whenever I run the code same device gets re-registered on the cumulocity platform. Can ayone help how to resolve this issue.
Any help is appreciated.

Hi Prajakta,

can you share some code snippets on how you set up the MQTT connection and register your device.

Do you follow the device registration process described here? Normally the ClientID of the MQTT connection is being used as the Identity for the device. This means, if the connection is re-established with the same ClientID the device won’t be registered again, in case it already exists in the targent tenant.

Best regards
Christian