Chengdu Ebyte Electronic Technology Co., Ltd.
EBT3002 User Manual
Copyright ©2012–2023
,
Chengdu Ebyte Electronic Technology Co., Ltd.
4.4.6 MQTT client
Supports fast access to standard MQTT3.1.1 protocol servers (such as OneNET, Baidu Cloud,
Huawei Cloud, and user built server types) and Alibaba Cloud servers, supports service quality level
configuration (Qos 0, Qos 1), supports ultra long text configuration, and facilitates better access to
network service operators (server address, three elements, subscription and publishing address
support up to 128 characters configuration, Alibaba Cloud product key 64 characters).
When using the MQTT function, short links should be turned off, otherwise the device will
repeatedly connect to the server. It is recommended to use a random port, as shown in the following
figure:
(
1
)、
You can refer to the following table to fill in the parameters for selecting standard
MQTT3.1.1, Baidu Cloud, OneNET, and Huawei Cloud configurations:
parameter
Standard
MQTT3.3.1
Baidu Cloud
OneNET
Device Name
(Client ID)
Client ID
DeviceKey
Device ID
user name
(Device name)
User Name
IoTCoreId/Device
Key
Product ID
password
(Device secret)
Password
DeviceSecret
Device Name/User
Password
PrductKey
Alibaba Cloud parameters, optional
Publish Theme MQTT publishing topic address (dynamically generated
by OneNET)
Subscription
Theme
MQTT subscription topic address (dynamically
generated by OneNET)
[Note]
Dynamically generating topic addresses can use the same parameters to achieve the effect of
data retrieval. For example, if OneNET publishes and subscribes to the same topic address: 123456,
data retrieval can be achieved;
Due to adjustments on the MQTT platform (Baidu Cloud, Huawei Cloud, OneNET), it is
not possible to connect after filling in the parameters. The platform rules shall prevail;
Taking the standard MQTT3.1.1 parameter filling as an example, as shown in the following