• 大小: 41.51M
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: MQTT  Qt  通讯  

资源简介

基于C# MQTTNet开发,Visual Studio 2017打开项目,其他版本不保证好用

资源截图

代码片段和文件信息

using MQTTnet;
using MQTTnet.Core;
using MQTTnet.Core.Client;
using MQTTnet.Core.Packets;
using MQTTnet.Core.Protocol;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace MqttNetClient
{
    public partial class FrmMqttClient : Form
    {
        private MqttClient mqttClient = null;

        public FrmMqttClient()
        {
            InitializeComponent();

            Task.Run(async () => { await ConnectMqttServerAsync(); });
        }

        /// 
        /// 连接服务器
        /// 

        /// 
        private async Task ConnectMqttServerAsync()
        {
            if (mqttClient == null)
            {
                mqttClient = new

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    ..A..H.    133120  2019-08-20 15:38  MqttNetTest\.vs\MqttNetTest\v15\.suo

     文件          0  2019-05-27 16:27  MqttNetTest\.vs\MqttNetTest\v15\Server\sqlite3\db.lock

     文件    1454080  2019-05-29 09:13  MqttNetTest\.vs\MqttNetTest\v15\Server\sqlite3\storage.ide

     文件      32768  2019-08-20 15:22  MqttNetTest\.vs\MqttNetTest\v15\Server\sqlite3\storage.ide-shm

     文件    3823392  2019-08-20 15:02  MqttNetTest\.vs\MqttNetTest\v15\Server\sqlite3\storage.ide-wal

     文件     429020  2019-03-14 10:11  MqttNetTest\.vs\MqttTest\DesignTimeBuild\.dtbcache

    ..A..H.    130560  2019-05-27 16:24  MqttNetTest\.vs\MqttTest\v15\.suo

     文件          0  2018-02-03 08:30  MqttNetTest\.vs\MqttTest\v15\Server\sqlite3\db.lock

     文件    4931584  2019-05-27 16:24  MqttNetTest\.vs\MqttTest\v15\Server\sqlite3\storage.ide

     文件        562  2018-03-12 15:22  MqttNetTest\MqttNetClient\App.config

     文件     728576  2016-12-15 06:16  MqttNetTest\MqttNetClient\bin\Debug\Apache.NMS.ActiveMQ.dll

     文件    3550720  2016-12-15 06:16  MqttNetTest\MqttNetClient\bin\Debug\Apache.NMS.ActiveMQ.pdb

     文件     590688  2016-12-15 06:16  MqttNetTest\MqttNetClient\bin\Debug\Apache.NMS.ActiveMQ.xml

     文件      65024  2015-10-17 11:31  MqttNetTest\MqttNetClient\bin\Debug\Apache.NMS.dll

     文件     196096  2015-10-17 11:31  MqttNetTest\MqttNetClient\bin\Debug\Apache.NMS.pdb

     文件     145105  2015-10-17 11:31  MqttNetTest\MqttNetClient\bin\Debug\Apache.NMS.xml

     文件      22768  2018-01-04 09:41  MqttNetTest\MqttNetClient\bin\Debug\Microsoft.Win32.Primitives.dll

     文件      14848  2019-05-27 16:55  MqttNetTest\MqttNetClient\bin\Debug\MqttClientWin.exe

     文件        562  2018-03-12 15:22  MqttNetTest\MqttNetClient\bin\Debug\MqttClientWin.exe.config

     文件      28160  2019-05-27 16:55  MqttNetTest\MqttNetClient\bin\Debug\MqttClientWin.pdb

     文件      90112  2017-10-09 19:47  MqttNetTest\MqttNetClient\bin\Debug\MQTTnet.Core.dll

     文件      20480  2017-10-09 19:47  MqttNetTest\MqttNetClient\bin\Debug\MQTTnet.dll

     文件      14848  2019-08-20 15:03  MqttNetTest\MqttNetClient\bin\Debug\MqttNetClient.exe

     文件        562  2018-03-12 15:22  MqttNetTest\MqttNetClient\bin\Debug\MqttNetClient.exe.config

     文件      28160  2019-08-20 15:03  MqttNetTest\MqttNetClient\bin\Debug\MqttNetClient.pdb

     文件      20168  2018-01-04 09:41  MqttNetTest\MqttNetClient\bin\Debug\System.AppContext.dll

     文件      34496  2018-01-04 09:41  MqttNetTest\MqttNetClient\bin\Debug\System.Console.dll

     文件      35760  2018-01-04 09:42  MqttNetTest\MqttNetClient\bin\Debug\System.Diagnostics.DiagnosticSource.dll

     文件      29658  2018-01-04 09:42  MqttNetTest\MqttNetClient\bin\Debug\System.Diagnostics.DiagnosticSource.xml

     文件      23296  2018-01-04 09:41  MqttNetTest\MqttNetClient\bin\Debug\System.Globalization.Calendars.dll

............此处省略4678个文件信息

评论

共有 条评论