1)阿里云物联网 1)首先在VS2019创建控制台.net core应用程序 2)在依赖项中添加Mqtt和CZGL_AliloTClient两个包 3)在progress.cs中编写连接秘钥 在这里插入代 static void Main(string[] args) { client = new AliIoTClientJson(new DeviceOptions { ProductKey = "a1Ga*****"