Overview

Privatization is achieved by creating a new message server [Broker].

This method offers excellent flexibility and scalability.
The Broker is a key component. In the Internet of Things (IoT), it is mainly responsible for the transmission and routing of messages.
It is used to enable communication between applications and devices, and handle the Publish and Subscribe mechanisms for messages.

Working mechanism

Connection Between Devices and the Broker:

1 guide After the device is powered on, it starts to connect to the network configured for it.

The device will enter the working mode designated for it by the platform.

2 Register Obtain the username and password required for MQTT connection

The device will send an HTTP request to the configured reg interface.

3 Subscribe Connect to MQTT and subscribe to topics

The device will receive and send messages on the corresponding topics.

Precautions

When implementing privatization by creating a new Broker, the following points need to be noted:
Matter Description
Communication protocol The device requires your Broker to support the MQTT 3.1.1 protocol.
network When a device is in normal working condition, it maintains a long connection with the Broker. Therefore, the device and the Broker must be on the same network (network segment), or the networks must be interconnected; otherwise, the device will be unable to connect to your Broker. The Broker can be deployed both in internal and external networks, as long as the network between the device and the Broker is interconnected.
View Details Related Documents