问题描述
我看过一些有关邮件系统使用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服务器和其他的Android平板电脑(例如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 - 服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!