Hi all.
I would like to interact with some Arduino boards from a magento webshop. I would like the webshop to activate individual borads depending on what the customers in the webshop buys.
I see that Magento supports rabbitMQ.
Have anyone tried something like this ? Are there better ways to achive the same with something else than message queuing ?
Cheers
While not familiar with RabbitMQ, I see that it does have a HTTP interface so it would be possible to interact with it from the Arduino through a wifi or 3G breakout or shield. The simplest solution would be for the Arduino to poll periodically to see if there is anything on the queue and then take whatever action you require.
If you want to avoid polling from the Arduino, then you will need to set the Arduino up as a HTTP server and write a bridge component between the RabbitMQ and the Arduino. This is more complex, as you will need to have a server to run the bridge on and have a fixed IP address or DNS entry for the Arduino that is accessible from wherever the bridge component is running. It does save on the polling from the Arduino, and you can use the bridge to reduce the RabbitMQ API down to only what the Arduino needs.
If you do go down the HTTP route, you will find that unless the HTTP responses are very small you will quickly exhaust the memory on an Uno or similar when trying to parse them.