MQTT.fx software connects to Alibaba Cloud

  1. Alibaba Cloud registration and authentication, MQTT download

Alibaba Cloud: IoT Platform (aliyun.com)

mqtt.fx下载:MQTT.fx 1.7 Download - MQTT.fx.exe (informer.com)

Simple! ! ! !

2. Create a new product

Log in to Alibaba Cloud, directly search for the Internet of Things platform, and enter (if you have not activated it before, click to activate it).

The new version of Alibaba Cloud IoT Platform looks like this:

Click the public instance to enter.

Click Device Management, select a product, and create a new product. Fill in the device information, pay attention to the selection of category and node type.

Fill in and click OK.

After completion, the following page appears, view product details.

Find the function definition and click Edit Draft.

Find custom features.

Select the attribute for the function, and fill in other contents according to your needs.

When finished, click Publish to go live.

At this point, the new product is completed.

3. New equipment

Find Device Management, Devices, Add Device. Pay attention to the product that the equipment belongs to, don't choose the wrong one!

Then click on the device name to go in and have a look.

Find the MQTT device certificate, check it, and remember these contents.

{

"ProductKey": "h2q0FJ4H7r7",

"DeviceName": "esp32_MQTT_message",

"DeviceSecret": "42b60c9e5adbc57d5f807c7fbb707fec"

}

Using the generator tool, generate a password.

User Name:esp32_MQTT_message&h2q0FJ4H7r7

password:2EDF947DEFC0735341E8C64866390AF09DC0157B

At this point, the device setup is complete.

4. Open the MQTT.fx test software on behalf of us, let's test it

The user name and password filled in by User Credentials are the user name and password we calculated in the previous step.

After completing the filling, click OK and click Connect.

The connection is successful and the light turns green.

Guess you like

Origin blog.csdn.net/weixin_58125062/article/details/129718234