Go Down

Topic: Any Arduino Library for AMQP protocol (Read 455 times) previous topic - next topic

titusece

Dear All,

I want to send data (publish) from Arduino to RabbitMQ broker.
So, we have any example for AMQP like MQTT ?

Its also helpful if available the same of ESP8266 (LUA or Espruino or arduino code)

Thanks for your help.

Regards,
Titus S.
Regards,
Titus S.

kowalski

How about using the MQTT Adapter for RabbitMQ and then the MQTT client library for your Arduino?

https://www.rabbitmq.com/mqtt.html
http://pubsubclient.knolleary.net/

Cheers!

titusece

#2
Dec 09, 2016, 09:56 pm Last Edit: Dec 09, 2016, 10:11 pm by titusece
Thanks for your reply.
I am already able to do MQTT but need AMQP support using CloudAMQP broker.
Any insights or pointers ?

Any arduino example is available for this ?
https://www.rabbitmq.com/mqtt.html
Regards,
Titus S.

titusece

I'm able to send message to cloudAMQP using the below linux commands.

AMQP:
amqp-publish -e amq.direct --url amqp://rpbabbvu:UWRYLmLEHHJSSXHXF7bhvy6CO1hlHYRT@zebra.rmq.cloudamqp.com/rpbabbvu -b 10

MQTT and Rabbitmq:
mosquitto_pub -h zebra.rmq.cloudamqp.com -t test -m "Jesus" -u rpbabbvu:rpbabbvu -P UWRYLmLEHHJSSXHXF7bhvy6CO1hlHYRT

In ESP8266 and Arduino:

mqttClient.setServer("zebra.rmq.cloudamqp.com", 1883);
mqttClient.setKeepAlive(5).setWill("topic/online", 2, true, "no").setCredentials("arbnarbm:arbnarbm", "1if1Zah5rraaBDcr9fN3bOV8guypAqEt").setClientId("myDevice");

Not sure, this is correct but able to see the activities in CloudAMQP while running on ESP8266/Arduino board.

Please anybody knows about AMQP in Arduino/ESP8266 (NodeMCU) ??
Regards,
Titus S.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy