登录
首页 » C# » 使用MqttNet自建mqtt服务端(broker)并实现客户端发布订阅消息 入门级示例源码

使用MqttNet自建mqtt服务端(broker)并实现客户端发布订阅消息 入门级示例源码

于 2018-10-01 发布
0 242
下载积分: 1 下载次数: 1

代码说明:

本示例主要实现了以下三点: 1. 自建了mqtt 服务端(broker),并可以接收客户端发来的各种topic 2. 实现了客户端发布订阅mqtt消息 3. 实现了 服务端直接向外广播topic,客户端只需要 订阅该topic即可 调试步骤如下: 1. 运行>>cmd>>  cd 至 MQTTnet.TestApp.AspNetCore2 目录,并执行 dotnet run 2. 浏览器输入 http://localhost:5000 即可看到如下截图,浏览器输入 http://localhost:5000/publish 即可通过服务端发布topic

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • asp.net固定资产管理系统
    【实例简介】 一、新用户登记 说明:注册后需要管理员审核后才可以登录,管理员登录地址/(也就是网站根目录,和用户同一个地址),帐号为:admin,密码:admin88 二、管理员后台 1、固定资产管理 1)固定资产查询/管理(由于列数比较多,采用固定前面4列的方式,后面的列可拉动横向滚动条),点击查看打印列表, 然后点击打印固定资讯标识卡,可打印。也可先点击开始查询,然后导出到Excel。 2)固定资产新增 3)审核新增固定资产 4)审核异动固定资产 5)审核维修固定资产 6)审核报废固定资产 7)批量异动固定资产 8)我管理的固定资产 9)管理事业部 10)管理部门 11)管理资产一级类别 12)管理资产二级类别 2、用户管理 管理用户,点击权限,可设置每一个用户的权限 3、个人设置 修改我的资料 三、注意事项: 数据库文件在database下,附加即可 管理员和会员登录目录为/(根目录),管理员帐号为:admin 密码:admin88,通过管理员审核用户,设置每一个用户的具体权限 数据库是SQL2008r2,开发工具是VS2010 运行环境:.net4.0,集成模式
    2021-11-20 00:32:57下载
    积分:1
  • ssocks-0.0.14.tar
    sSocks是一个socks代理工具套装,可用来开启socks代理服务,支持socks5验证,支持IPV6和UDP,并提供反向socks代理服务,即将远程计算机作为socks代理服务端,反弹回本地,极大方便内网的渗透测试,其最新版为0.0.13(sSocks is a socks proxy tool sets, can be used to open the socks proxy services, support socks5 authentication, support for IPV6 and UDP, and to provide reverse socks proxy services, about the remote computer as socks proxy server, bounce back to the local, which greatly facilitates network penetration testing, and its latest version is 0.0.13,)
    2020-12-10 16:09:19下载
    积分:1
  • RED.CC
    我研究生阶段研究定的方向是网络拥塞管理,而我研究RED算法也有挺长时间了,很久以前就有解析NS中的队列管理算法RED的源代码(red.cc&red.h)的想法,借寒假有时间,匆匆写了一下。有些东西自己也没完全弄懂,但是对于困惑于如何修改RED算法的同学来说,应该有很大的参考价值。 本文档首先分析了RED算法涉及参数的含义,然后给出了主要函数的作用,最后对主要函数的源代码进行了分析。 希望本文档对你有用。 (I set the direction of post-graduate stage of the study is to network congestion management, but I have studied the RED algorithm also has quite a long time, long ago have resolved NS in the RED queue management algorithm source code (red.cc & red.h) the idea, by winter have the time to rush to write a bit. Some things they themselves have no fully understood, but for the confusion on how to modify the RED algorithm for the students, it should be a great reference value. This document first analyzes the RED algorithm is related to the meaning of the parameters, and then gives a major role in the function and finally the main function of the source code analyzed. Hope that this document useful to you.)
    2010-03-10 10:17:10下载
    积分:1
  • comt
    com密码获取 获取IE密码源码 软键盘密码等等一系列(com password to obtain access to the the IE password source soft keyboard password so a series of)
    2013-02-02 23:02:53下载
    积分:1
  • xemberwise
    CSR蓝牙MP3播放USB DONGLE源码,支持蓝牙A2DP协议,实现无MP3播放功能()
    2018-07-08 06:01:42下载
    积分:1
  • udpMultiCastTest
    UDP组播测试,可以用多个PC机之间进行UDP测试。(udp test for computers)
    2021-04-14 11:38:55下载
    积分:1
  • Contacts
    基于android平台的手机通讯录的设计(Design of Mobile Address Book Based on Android)
    2020-06-25 16:40:01下载
    积分:1
  • jdrda
    说明:  Source code Image matching source code for image matching
    2018-12-31 05:02:48下载
    积分:1
  • udt
    UDT网络传输协议开源包,是基于UDP的可靠传输协议,支持P2P,有现成的文件传输函数,速度比TCP快。(Open source packages of the UDT network transport protocol is UDP-based reliable transport protocol to support P2P, there is a ready-made file transfer function, the speed is faster than TCP.)
    2012-03-08 16:11:46下载
    积分:1
  • 微信公众平台开发c#框架源码下载(含发消息demo)
    微信公众平台开发c#框架源码下载(含发消息demo)
    2015-05-12下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载