百度智能云

All Product Document

          IoT Core

          Access Connection Information

          1. Access the Connection Information

          In the list, click the device name created in previous step to enter the detailed page of the device. Locate 「DeviceSecret」field in connection information banner, and click the small eye icon on the right to view the connection information, including IoTCoreId, DeviceKey and DeviceSecret.

          2. Generate MQTT Connection Information

          Use [Specified Algorithm](https://cloud.baidu.com/doc/IoTCore/s/Akck4811r#generate-mqtt-username and password (device key authentication)) to generate connection information; in quick experience, the online generator can also be used, open MQTT Connection Information Generator, and use IoTCoreId、DeviceKey and DeviceSecret to generate the username and password required by MQTT connection.

          MQTT can be connected by three mode including TCP, TLS/SSL and WSS, and the corresponding ports are shown as follows:

          Protocol Port Description
          TCP 1883 Unencrypted MQTT connection
          TLS/SSL 1884 Encrypted MQTT connection based on TLS
          WSS 443 MQTT connection based on WebSocket and TLS

          Select based on the actual scenario during the use

          Previous
          Create a Device
          Next
          Connect and Receive and Send Messages by MQTT Simulator