使用Android的平板电脑作为MQTT - 服务器 [英] Using Android-Tablet as an MQTT-Server

查看:531
本文介绍了使用Android的平板电脑作为MQTT - 服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看过一些有关邮件系统使用MQTT协议。但是,我总是念叨星座: 采用Android作为一个MQTT客户机和MQTT,服务器是不是在Android智能手机奥德平板电脑安装(但作为一个独立的服务器)。

I have read something about "messaging system" using the MQTT protocol. But i was always reading about the constellation: using Android as a MQTT-Client and a MQTT-Server which is not installed on a Android smartphone oder tablet (but as a standalone server).

是否有可能使用一个Android的平板电脑作为MQTT服务器和其他的Andr​​oid平板电脑(例如5片)作为MQTT-客户端??

Is it possible to use one Android-Tablet as a MQTT-Server and some other Android-Tablets (for example 5 Tablets) as MQTT-Clients??

如果这是可能的,也是有可能使用一个Android的平板电脑是一个MQTT-服务器,也可作为MQTT客户机?

And if this is possible, is it possible to use the one Android-Tablet which is a MQTT-Server, also as a MQTT-Client?

在Android的MQTT-Server的平板电脑和其他平板电脑的MQTT客户机之间的通信,应该通过一个WIFI-路由器/ WIFI接入点。

The communication between the Android-MQTT-Server-Tablet and the other tablets as MQTT-Client, should work over an WIFI-Router / WIFI-Access-Point.

感谢您提前帮助。

推荐答案

有可能使用平板电脑作为MQTT经纪人(服务器)和MQTT客户。你将不得不使用所有的平板电脑客户端库,并在其中一人的经纪人。

It is possible to use tablets as mqtt brokers (server) and mqtt clients. You'll have to use a client library on all tablets and a broker on one of them.

下面是纯Java的经纪人我已经适应了工作,在Android上: https://github.com/interaktionsbyran/moquette 随意尝试一下!

Here is pure java broker I have adapted to work on Android: https://github.com/interaktionsbyran/moquette Feel free to try it out!

这篇关于使用Android的平板电脑作为MQTT - 服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆