Skip to content
Snippets Groups Projects
Commit 645f5e83 authored by Prabeesh K's avatar Prabeesh K
Browse files

Change clientId to random clientId

Returns a randomly generated client identifier based on the current user's login name and the system time.
parent 4b074fac
No related branches found
No related tags found
No related merge requests found
......@@ -80,7 +80,7 @@ class MQTTReceiver(brokerUrl: String,
var peristance: MqttClientPersistence = new MemoryPersistence()
// Initializing Mqtt Client specifying brokerUrl, clientID and MqttClientPersistance
var client: MqttClient = new MqttClient(brokerUrl, "MQTTSub", peristance)
var client: MqttClient = new MqttClient(brokerUrl, MqttClient.generateClientId(), peristance)
// Connect to MqttBroker
client.connect()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment