简体   繁体   English

在Web服务器和树莓派之间进行通信

[英]Communicate between web server and raspberry pi

Assume that I have web server (ad-box.deslab.vn) and raspberry pi is a client connected to my web server. 假设我有Web服务器(ad-box.deslab.vn),并且raspberry pi是连接到我的Web服务器的客户端。 (Server and Client is not in local network) Beside using socket, How can I send a string from web server to raspberry pi? (服务器和客户端不在本地网络中)除了使用套接字外,如何从Web服务器向Raspberry Pi发送字符串? What languages can I use to code for web server and client? 我可以使用哪些语言为Web服务器和客户端编码?

You can use MQTT (MQ Telemetry Transport or Message Queue Telemetry Transport) which is an ISO standard publish-subscribe-based lightweight messaging protocol for use on top of the TCP/IP protocol. 您可以使用MQTT(MQ遥测传输或消息队列遥测传输),它是基于ISO标准基于发布-订阅的轻量级消息传递协议,可以在TCP / IP协议之上使用。 It is designed for connections with remote locations where a "small code footprint" is required or the network bandwidth is limited. 它设计用于需要“小代码占用”或网络带宽受限的远程位置的连接。

Below you can find the list of some MQTT clients in various languages. 您可以在下面找到各种语言的一些MQTT客户端的列表。

http://www.hivemq.com/blog/seven-best-mqtt-client-tools http://www.hivemq.com/blog/seven-best-mqtt-client-tools

https://www.ibm.com/support/knowledgecenter/SS9D84_1.0.0/com.ibm.mm.tc.doc/tc10100_.htm https://www.ibm.com/support/knowledgecenter/SS9D84_1.0.0/com.ibm.mm.tc.doc/tc10100_.htm

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM