eclipse-paho / eclipse-paho/paho.mqtt.java

More unique clientId

Open
#265 4 comments 0 reactions 1 assignee Claimed by @jpwsutton View on GitHub
enhancement
Dominant language
Java
Stars
2.3k
Forks
919
PR merge metrics
No merged PRs in 30d

Description

_From @vanshg on September 7, 2016 16:49_

Right now, with the current implementation of combining a static String with the current time, there is chance of users having overlapping clientIds, especially in an application with many users on the same channel.

Maybe use the UUID of the Android device, or generate a random String and use that.

For example, `String clientId = UUID.randomUUID().toString()`

That way 1) the Client ID is more unique and 2) There is less chance for overlap of client ids

_Copied from original issue: eclipse/paho.mqtt.android#120_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.