TMQTTClient Library Version 1.01 for Delphi by Jamie Ingilby
INTRODUCTION:
TMQTTClient is a non-visual Delphi Client Library for the IBM Websphere MQ Transport Telemetry protocol. It allows you to connect to a Message Broker that uses MQTT such as the Really Small Message Broker(http://alphaworks.ibm.com/tech/rsmb) which is freely available for evaluation purposes on IBM Alphaworks.
The Documentation of the protocol can be found here:
http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/ac10840_.htm
LIMITATIONS:
This is not a reference implementation of the MQTT Protocol but does support both Publishing Messages and Subscribing to Topics with the following limitations:
- It only allows and supports QoS 0 Messages. I havent built QoS levels 1 or 2 in yet as I personally have no need for them but this is planned for future versions.
- You are required to schedule pinging the server yourself (using a TTimer for examples). The client library implements a ping command but doesnt automatically ping the server itself at regular intervals.
Note: You should also be aware that it uses part of the Synapse Internet Communications Library for its Socket support so youll need to ensure that this is available on your search path.
HOMEPAGE:
http://jamie.op-i.net/blog/code/mqtt-client-library-for-delphi/
USAGE:
There is a sample project included in the download but usage is relatively simple. This is a non-visual component so all you need to do is to put MQTT.pas and MQTTReadThread.pas into a directory that is in your compiler paths and then put MQTT in your uses.
uses MQTT;
var
MQTTClient: TMQTTClient;
begin
MQTTClient := TMQTTClient.Create('127.0.0.1', 1883);
MQTTClient.Connect;
MQTTClient.Publish('/dev/test', 'This is a test message.');
MQTTClient.Disconnect;
MQTTClient.Free;
end;
Special Thanks go to Andy Stanford-Clark and Nick OLeary for their help on various hiccups that I encountered while developing and testing TMQTTClient.
If you are using my TMQTTClient in anything then Id love to hear about how youre using it, please contact me and let me know what youre using it for.
没有合适的资源?快使用搜索试试~ 我知道了~
delphi MQTT客户端demo
共10个文件
txt:3个
pas:3个
res:1个
2星 需积分: 45 89 下载量 142 浏览量
2016-08-02
14:12:19
上传
评论 4
收藏 16KB ZIP 举报
温馨提示
tmqttclient是非可视化Delphi客户端库
资源推荐
资源详情
资源评论
收起资源包目录
TMQTTClient.zip (10个子文件)
TMQTTClient
LICENSE.txt 1KB
MQTT_Test.dproj 4KB
CHANGELOG.txt 810B
TMQTTClient
MQTTReadThread.pas 8KB
MQTT.pas 20KB
uMain.pas 3KB
README.txt 2KB
uMain.dfm 4KB
MQTT_Test.res 5KB
MQTT_Test.dpr 355B
共 10 条
- 1
资源评论
- tanglitao2017-09-19需要第三方组件,编译了一下,没有通过,不知道什么问题
- 青春青春2018-07-04缺文件,白花了3分
两岁半
- 粉丝: 46
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功