Baidu cloud IoT access IoT and MQTT test

configure

Recall the definition of MQTT:

MQTT (Message Queuing Telemetry Transport, Message Queuing Telemetry Transport) is an instant messaging protocol developed by IBM, which may become an important part of the Internet of Things. The protocol supports all platforms and can connect almost all connected things to the outside world, and is used as a communication protocol for sensors and actuators (such as connecting houses through Twitter).

 

1. Register a Baidu cloud account and open the object access interface:

 

2. Create in the management control platform:

 

 

3. Click on the instance name you just created and create a device:

 

 

4. Fill in the identity, strategy, subject and other information

It should be noted that the Topic and the generated key must be remembered. If the key is lost, you can only reset the key.

 

 

That's it for the basic configuration.

MQTT connection test

1. Click on the connection test:

 

2. Fill in the key generated just now, and the user name, and then click Connect

 

3. After connecting, start the test and fill in the theme you just set. For example, the theme I set is qzsservice. The steps are as follows:

 

 

After sending, the Messages information will be displayed at the bottom, indicating that the test is successful!

If you have any questions, please message me!

Recommended reading

 

 

   MQTT Protocol (1) - Introduction

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326035343&siteId=291194637