首页 > php教程 > php手册 > 正文

Android 推送消息(MQTT) PHP发送

php中文网
发布: 2016-06-06 19:59:06
原创
2104人浏览过

1.服务器安装:ibm的 rsmb (mqtt协议代理) Really Small Message Broke(rsmb_1.2.0) http://download.csdn.net/detail/wuzehai02/4735055 安装 To start the broker on Windows: In the folder where you installed the broker, double-click broker.exe .

1.服务器安装:ibm的 rsmb (mqtt协议代理)

Really Small Message Broke(rsmb_1.2.0)
http://download.csdn.net/detail/wuzehai02/4735055

安装  

To start the broker on Windows:

  1. In the folder where you installed the broker, double-click broker.exe.

To start the broker on Linux:

  1. In a terminal, change to the directory where you installed the broker; for example:
    cd /home/laura/broker
    登录后复制
  2. Enter the appropriate command for your platform. For example, on Ubuntu, type:
    ./broker.ubuntu
    登录后复制

    Alternatively, to run the broker in the background so that it will continue to run when you log out of the session, enter the following command:

    nohup ./broker.ubuntu >> /dev/null &
    登录后复制

The broker is now ready to publish messages.

To stop the broker cleanly, type Ctrl-C. On Linux, if you prefer, you can just kill the process of the running broker:

php商城系统(本地测试包)
php商城系统(本地测试包)

PHP商城系统是国内领先商城系统,网店系统,购物系统,网上商城系统,B2C商城系统产品.同时也是一个商业的PHP开发框架。PHP 商城系统由内容、文章、会员、留言、订单、 财务、广告、短消息、数据库管理、营销推广、内置支付管理、商品配送管理、无限级分类、全站搜索等多个功能模块插件组成。在当今瞬机万变的市场环境中,快速高效的IT解决方案是您业务成功的关键。我们PHP商城系统能为您量身打造完全符合需求

php商城系统(本地测试包) 0
查看详情 php商城系统(本地测试包)

立即学习PHP免费学习笔记(深入)”;

ps -ef | grep broker
kill -term <var>process_id_of_the_running_broker</var>
登录后复制



2 服务器消息发送方:
PHP服务器端使用的是:SAM 针对MQTT写的PHP库 (下载链接为Tokudu PHPMQTT通信项目),其中send_mqtt.php是一个通过POST接收消息并且通过SAM将消息发送给RSMB的PHP脚本。
下载地址
http://download.csdn.net/detail/wuzehai02/4735078

Android 推送消息(MQTT) PHP发送

3  ANDROID 客户端的消息PUSH DEMO

下载地址
http://download.csdn.net/detail/wuzehai02/4735172





经过本人测试过,代码绝对可用



相关标签:
PHP速学教程(入门到精通)
PHP速学教程(入门到精通)

PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号