thingsboard / tbmq

Open-source, scalable, and fault-tolerant MQTT broker able to handle 4M+ concurrent client connections, supporting at least 3M messages per second throughput per single cluster node with low latency delivery. The cluster mode supports more than 100M concurrently connected clients.
https://thingsboard.io/products/mqtt-broker/
Apache License 2.0
570 stars 46 forks source link

How do devices connect to MQTT brokers #113

Closed huangyg1252497580 closed 4 months ago

huangyg1252497580 commented 4 months ago

Component

Description hello, dmytro-landiak Now I don't know how my device connects to MQTT Broker,Then, after my device is connected to the MQTT broker, where is the interface for the code to process this connection request?How does the broker handle this connection request, I don't see the description of request connection processing in the documentation, can you help me ?please answer, thank you!

Environment

dmytro-landiak commented 4 months ago

Hi @huangyg1252497580,

You can find the MqttSessionHandler class and CONNECT packet handling. image

Then the processing of the connect request is done in the ConnectServiceImpl class.

Regards!

dmytro-landiak commented 4 months ago

@huangyg1252497580, I am closing this issue due to inactivity. Please feel free to reopen it if you have any more questions.