客户端接入
如何接入WaveshareCloud?
Waveshare Cloud提供多种协议接入,常用MQTT协议接入
MQTT
当使用MQTT接入平台时会有一下参数需求:
参数 | 示例 | 描述 | Needed |
---|---|---|---|
Url | mqtt.waveshare.cloud | 固定Url | |
Port | 1883 | MQTT协议指定端口 | |
Client ID | 示例:0xxx05x2 | 通常创建设备后由平台分配 | |
Username | 暂不需要 | ||
Password | 再不需要 | ||
Publish Topic | 示例:Pub/1X/1x/0xxx05x2 | 通常创建设备后由平台分配 | |
subscribe Topic | 示例:Sub/1X/1x/0xxx05x2 | 通常创建设备后由平台分配 |
参数 | 示例 | 描述 | Needed |
---|---|---|---|
Url | mqtt.waveshare.cloud | 固定Url | |
Port | 8883 | MQTTS协议指定端口 | |
Client ID | 示例:0xxx05x2 | 通常创建设备后由平台分配 | |
Username | 暂不需要 | ||
Password | 再不需要 | ||
Publish Topic | 示例:Pub/1X/1x/0xxx05x2 | 通常创建设备后由平台分配 | |
subscribe Topic | 示例:Sub/1X/1x/0xxx05x2 | 通常创建设备后由平台分配 |
参数 | 示例 | 描述 | Needed |
---|---|---|---|
Url | mqtt.waveshare.cloud | 固定Url | |
Port | 8884 | MQTTS协议指定端口 | |
Client ID | 示例:0xxx05x2 | 通常创建设备后由平台分配 | |
Username | 暂不需要 | ||
Password | 再不需要 | ||
Publish Topic | 示例:Pub/1X/1x/0xxx05x2 | 通常创建设备后由平台分配 | |
subscribe Topic | 示例:Sub/1X/1x/0xxx05x2 | 通常创建设备后由平台分配 |
rootCA.crt
-----BEGIN CERTIFICATE-----
MIID6TCCAtGgAwIBAgIJALAks3ODRL3nMA0GCSqGSIb3DQEBCwUAMIGKMQswCQYD
VQQGEwJjbjELMAkGA1UECAwCZ2QxCzAJBgNVBAcMAnN6MRIwEAYDVQQKDAl3YXZl
c2hhcmUxDDAKBgNVBAsMA2lvdDEdMBsGA1UEAwwUbXF0dC53YXZlc2hhcmUuY2xv
dWQxIDAeBgkqhkiG9w0BCQEWEXN3YW5zaGFyZU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