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

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

于 2018-10-01 发布
0 179
下载积分: 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 个回复

  • smart-home-server
    基于select的多线程并发服务器,可用作基础服务器框架(Multithread concurrent server)
    2020-06-18 16:00:02下载
    积分:1
  • WINDOWSNetWork
    说明:  windows网络编程艺术,适合网络开发程序员看(windows network programming art, web development programmers look for)
    2010-04-09 10:49:19下载
    积分:1
  • AVI_Transport
    :文章介绍了在局域网有关AVI文件视频流的实时操作中如何获取AVI视 频流,利用系统压缩管理器实现视频压缩,并实现视频图像的快速显示等问题。具体 讨论了在利用UDP协议进行数据传输时平滑突发数据流、恢复接收数据包的次序 等问题。(: This paper introduces the relevant AVI file in the local area video streaming real-time operation How to obtain the AVI video stream, using System Manager to achieve compression video compression, and to achieve rapid display video images and so on. Specifically discussed the use of UDP protocol for data transmission when the unexpected smooth data flow and restore order to receive packets and so on.)
    2008-01-24 11:21:17下载
    积分:1
  • socketClinet
    网络编程,实现TCP连接的客户端程序,不同的客户端发出请求与服务器建立连接。(Network programming, client TCP connection, different client makes a request to establish a connection with the server.)
    2014-05-20 20:35:29下载
    积分:1
  • TCP
    基于流式套接字的TCP回射程序的客户端以及服务器(Retroreflective program based on the TCP stream socket)
    2012-12-28 15:37:39下载
    积分:1
  • Socket
    说明:  socket的服务器和客户端,实现点对点聊天功能(socket server and client, to achieve point-to-point chat)
    2008-12-07 09:25:50下载
    积分:1
  • TCP-UDP
    TCP与UDP源代码测试程序,方便初学者观看,理解。用VC写的,容易读懂。。(TCP and UDP code for ABC to use)
    2012-06-17 11:38:04下载
    积分:1
  • 简单的模拟远控制
    一个简单的远程控制(不算远控,只能算SOCKET编程吧),SDK..。代码没有优化,懒得调试。 只有远程信息查看,进程管理,文件管理 这个纯粹只是当时熟悉SOCKET的同步阻塞模型编的(真正的远控不是这样的),而且,没有加dll注入,自启动。。 
    2017-08-03下载
    积分:1
  • vanet
    车载自组网的发展与现状,包括网络结构 主要特点,应用举例,难点与重点,研究现状,物理层参数,MAC 层协议,帧结构,接入方式,802.11DCF,RR-ALOHA,CSMA/CA 和RR-ALOHA 的比较,路由协议 (Vehicle Development and Status of ad hoc networks, including the main features of network structure, application examples, difficulties with focused, current research, physical layer parameters, MAC layer protocol, frame structure, access methods, 802.11DCF, RR-ALOHA, CSMA/CA and RR-ALOHA comparison of routing protocols)
    2010-06-10 11:04:59下载
    积分:1
  • InvertedDigitTime
    倒影数字时间,两个时钟的时间是同步的,每0.96秒更新一次时间(Reflection digital time, two clock time is synchronized, and updated once every 0.96 seconds of time)
    2010-02-04 08:57:15下载
    积分:1
  • 696518资源总数
  • 106161会员总数
  • 5今日下载