--
--
To learn more about MQTT please visit http://mqtt.org
To post to this group, send email to mq...@googlegroups.com
To unsubscribe from this group, send email to
mqtt+uns...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/mqtt
---
You received this message because you are subscribed to the Google Groups "MQ Telemetry Transport" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mqtt+uns...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hi Marco,the main side-effect is that you will no longer be compliant with the MQTT spec. The OASIS standardisation work reaffirms this requirement: If the ClientId represents a client already connected to the server then the server MUSTdisconnect the existing client.
True, but if you are running a public broker where random clients can try to connect, you really should also be using authentication/authorisation to prevent this.
>> - it is an easy source of kick-off loops if two clients with the same ID just keep reconnecting (which they would do by default with a client library).None of the client libraries I know of have a 'default' client ID that would lead to this behaviour.
>> - it is difficult to work around if I don't want random client ID, because it is the wrong client that gets disconnected.What do you mean by 'wrong client gets disconnected'? It is not difficult to work around. Clients should identify themselves properly.
Hi Marco,
Another possibility would be to require that client id == username. It ought to be easy to enforce this at the broker.
Cheers,
Roger
is there any way to know the client is online or not?