Django MQTT 连接阿里云

目录

​https://help.aliyun.com/document_detail/98293.html​

一、安装库

1.安装Python对接mqtt协议库,paho-mqtt

pip install paho-mqtt


2.安装阿里云物联网封装paho-mqtt后的库,aliyun-iot-linkkit

pip install aliyun-iot-linkkit


二. 设备认证,一机一密型接入

​https://iot.console.aliyun.com/devices/​