Java Paho: ClientId longer than 23 characters [message #1777861] |
Tue, 05 December 2017 08:07  |
Eclipse User |
|
|
|
Hey,
i started with Paho one week ago. First of all : good work!
I tried to generate a clientId via this method:
MqttClient.generateClientId()
my exact line of code:
client = new MqttClient(ip, MqttClient.generateClientId());
this was my error:
Exception in thread "main" java.lang.IllegalArgumentException: ClientId longer than 23 characters
at org.eclipse.paho.client.mqttv3.MqttAsyncClient.<init>(MqttAsyncClient.java:257)
at org.eclipse.paho.client.mqttv3.MqttClient.<init>(MqttClient.java:222)
at org.eclipse.paho.client.mqttv3.MqttClient.<init>(MqttClient.java:134)
at MQTTMessenger.<init>(MQTTMessenger.java:27)
at SmartFactory.<init>(SmartFactory.java:24)
at SmartFactoryMain.main(SmartFactoryMain.java:5)
Did i do something wrong? Or why is the "generateClientId"-method producing a wrong clientId?
I hope i don't waste ur time.
Have a nice day.
Fine regards,
Carl
|
|
|
|
Powered by
FUDForum. Page generated in 0.03891 seconds