资源简介
从git上下的paho.mqtt.m2mqtt-master,在此基础上做的测试窗体(连接,订阅,推送,重连)和json解析。引用时记得改为生成类库

代码片段和文件信息
/*
Copyright (c) 2013 2014 Paolo Patierno
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
and Eclipse Distribution License v1.0 which accompany this distribution.
The Eclipse Public License is available at
http://www.eclipse.org/legal/epl-v10.html
and the Eclipse Distribution License is available at
http://www.eclipse.org/org/documents/edl-v10.php.
Contributors:
Paolo Patierno - initial API and implementation and/or initial documentation
*/
using System;
using System.Text;
namespace uPLibrary.Networking.M2Mqtt
{
///
/// Interface for channel under MQTT library
///
public interface IMqttNetworkChannel
{
///
/// Data available on channel
///
bool DataAvailable { get; }
///
/// Receive data from the network channel
///
/// Data buffer for receiving data
/// Number of bytes received
int Receive(byte[] buffer);
///
/// Receive data from the network channel with a specified timeout
///
/// Data buffer for receiving data
/// Timeout on receiving (in milliseconds)
/// Number of bytes received
int Receive(byte[] buffer int timeout);
///
/// Send data on the network channel to the broker
///
/// Data buffer to send
/// Number of byte sent
int Send(byte[] buffer);
///
/// Close the network channel
///
void Close();
///
/// Connect to remote server
///
void Connect();
///
/// Accept client connection
///
void Accept();
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2906 2016-10-21 01:32 paho.mqtt.m2mqtt-master\.gitignore
文件 1605 2016-10-21 01:32 paho.mqtt.m2mqtt-master\about.html
文件 3137 2016-10-21 01:32 paho.mqtt.m2mqtt-master\Backup\M2Mqtt\Exceptions\MqttClientException.cs
文件 1163 2016-10-21 01:32 paho.mqtt.m2mqtt-master\Backup\M2Mqtt\Exceptions\MqttCommunicationException.cs
文件 907 2016-10-21 01:32 paho.mqtt.m2mqtt-master\Backup\M2Mqtt\Exceptions\MqttConnectionException.cs
文件 767 2016-10-21 01:32 paho.mqtt.m2mqtt-master\Backup\M2Mqtt\Exceptions\MqttTimeoutException.cs
文件 2102 2016-10-21 01:32 paho.mqtt.m2mqtt-master\Backup\M2Mqtt\IMqttNetworkChannel.cs
文件 739 2016-10-21 01:32 paho.mqtt.m2mqtt-master\Backup\M2Mqtt\Internal\InternalEvent.cs
文件 1324 2016-10-21 01:32 paho.mqtt.m2mqtt-master\Backup\M2Mqtt\Internal\MsgInternalEvent.cs
文件 1514 2016-10-21 01:32 paho.mqtt.m2mqtt-master\Backup\M2Mqtt\Internal\MsgPublishedInternalEvent.cs
文件 5488 2016-10-21 01:32 paho.mqtt.m2mqtt-master\Backup\M2Mqtt\M2Mqtt.NetCf35.csproj
文件 9740 2016-10-21 01:32 paho.mqtt.m2mqtt-master\Backup\M2Mqtt\Messages\MqttMsgba
文件 6929 2016-10-21 01:32 paho.mqtt.m2mqtt-master\Backup\M2Mqtt\Messages\MqttMsgConnack.cs
文件 23824 2016-10-21 01:32 paho.mqtt.m2mqtt-master\Backup\M2Mqtt\Messages\MqttMsgConnect.cs
文件 1295 2016-10-21 01:32 paho.mqtt.m2mqtt-master\Backup\M2Mqtt\Messages\MqttMsgConnectEventArgs.cs
文件 3851 2016-10-21 01:32 paho.mqtt.m2mqtt-master\Backup\M2Mqtt\Messages\MqttMsgContext.cs
文件 2890 2016-10-21 01:32 paho.mqtt.m2mqtt-master\Backup\M2Mqtt\Messages\MqttMsgDisconnect.cs
文件 2886 2016-10-21 01:32 paho.mqtt.m2mqtt-master\Backup\M2Mqtt\Messages\MqttMsgPingReq.cs
文件 2926 2016-10-21 01:32 paho.mqtt.m2mqtt-master\Backup\M2Mqtt\Messages\MqttMsgPingResp.cs
文件 4240 2016-10-21 01:32 paho.mqtt.m2mqtt-master\Backup\M2Mqtt\Messages\MqttMsgPuback.cs
文件 4224 2016-10-21 01:32 paho.mqtt.m2mqtt-master\Backup\M2Mqtt\Messages\MqttMsgPubcomp.cs
文件 10031 2016-10-21 01:32 paho.mqtt.m2mqtt-master\Backup\M2Mqtt\Messages\MqttMsgPublish.cs
文件 2158 2016-10-21 01:32 paho.mqtt.m2mqtt-master\Backup\M2Mqtt\Messages\MqttMsgPublishedEventArgs.cs
文件 3024 2016-10-21 01:32 paho.mqtt.m2mqtt-master\Backup\M2Mqtt\Messages\MqttMsgPublishEventArgs.cs
文件 4210 2016-10-21 01:32 paho.mqtt.m2mqtt-master\Backup\M2Mqtt\Messages\MqttMsgPubrec.cs
文件 5038 2016-10-21 01:32 paho.mqtt.m2mqtt-master\Backup\M2Mqtt\Messages\MqttMsgPubrel.cs
文件 5379 2016-10-21 01:32 paho.mqtt.m2mqtt-master\Backup\M2Mqtt\Messages\MqttMsgSuback.cs
文件 10033 2016-10-21 01:32 paho.mqtt.m2mqtt-master\Backup\M2Mqtt\Messages\MqttMsgSubscribe.cs
文件 1946 2016-10-21 01:32 paho.mqtt.m2mqtt-master\Backup\M2Mqtt\Messages\MqttMsgSubscribedEventArgs.cs
文件 2328 2016-10-21 01:32 paho.mqtt.m2mqtt-master\Backup\M2Mqtt\Messages\MqttMsgSubscribeEventArgs.cs
............此处省略175个文件信息
- 上一篇:遥感图像处理与应用完整版PDF
- 下一篇:sipp使用案例及说明
相关资源
- WPF USB 网络 串口 通信软件
- B/S 网上订餐系统
- 教室管理系统.rar
- 小鸡快跑游戏.
-
分别适用于.NET fr
amework 2.0和4.0的E - 汽车租赁系统............................
- 德卡D8读写器关于读写感应卡的一些代
- halcon 测量助手
- 图片存储到数据库保存二进制文件并
- 用Socket写的简易FTP服务器和客户端
- 企业销售管理信息系统(全套)
- 串口操作类(justinio)
- 基于Petri网的工作流(完整的原创源代
- 选择题自动考试系统
- 多线程实例:桌面智能弹球小游戏
- MQTT+串口(usart)透传
- MQTT推送Demo
- 土地信息管理系统
- ServiceStack V3.9 全部dll
- PDF pdfview.ocx 无水印
- MQTT_3.1protocol_Specific中文版
- 无需共享打印机实现远程打印功能小
- 真正的破解版PDFView4NET
- 网页调用ActiveX控件获取串口数据
- Luence的与盘古分词的使用软件
- Emgu.CV 打开视频与人脸检测
- 麦克纳姆轮程序.rar
- Unity3D 实战视频教程 保卫萝卜 2D 游戏
- net微信支付
- lucene.net+盘古分词多条件全文检索并匹
评论
共有 条评论