Arduino(Ruby client) 到 Http server (Rails Application) 使用发布-订阅直接通信

Arduino(Ruby client) to Http server (Rails Application) direct communication using publish-subscribe

如果资源通过发布订阅策略可用,是否可以实现 REST 客户端(不是浏览器,但 ruby 客户端在 arduino 设备上工作)来访问资源? (例如:http 服务器(rails 应用程序)通知客户端资源现在可用,您可以 receive/download)

我想为 "communication directly between ruby client in arduino board to http server" 构建应用程序。 我不想使用像 Rabbitmq、zeromq 这样的中间层。 如果可能的话,可以遵循哪些可能的步骤?

pub/sub无法使用 HTTP。

如果您不想使用消息队列(anyMQ),请尝试使用普通 TCP/UDP 套接字。

XMPP 不是最好的选择,它的开销太大。