Project

mqtt_rpc

0.0
No commit activity in last 3 years
No release in over 3 years
mqtt_rpc
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0
~> 13.0

Runtime

~> 0.5.0
 Project Readme

MQTTRpc

Rabbitmq Transfer Message By Sync On Mqtt

Installation

Add this line to your application's Gemfile:

gem 'mqtt_rpc'

And then execute:

$ bundle

Or install it yourself as:

$ gem install mqtt_rpc

Usage

  require 'mqtt_rpc'

  # 3 seconds will timeout, default: 10
  sync_client = MQTTRpc::Client.new(options, 3)

  response_body = sync_client.publish('request_topic', 'message', 'response_topic')