1

I want to start a small project with my arduino. The idea is to have this communication flow:

arduino <-> wireless board <-> Wi-Fi router <-> Web Server <-> Ruby on Rails 3 <-> Smart Phone <-> Browser

I found a framework called RAD (Ruby Arduino Development) but the last update is from 2008. Does anyone know another option to this?

Snake Sanders
  • 2,641
  • 2
  • 31
  • 42

2 Answers2

1

The WiShield has libraries that can talk basic TCP/IP. The source code has an example HTTP client. This can be used as a basis for a client that makes requests to a rails server.

The WiShield seems to be available in a bunch of places.

Michael Slade
  • 13,802
  • 2
  • 39
  • 44
0

You could send sensor values through the internet via an Ethernet shield like the ENC28J60 with the EtherCard library. Then you could make an RESTful API on your Rails app (e.g. with Grape), and from the Arduino shield, send the info to this API using the EtherCard library that I suggest.

If you want to use wifi capabilities, the concept it's the same, but instead of use an Ethernet shield, use a wifi shield like this.

Here you have an example to do it with an Ethernet shield.

Iván González
  • 149
  • 3
  • 6
  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - [From Review](/review/low-quality-posts/10717161) – Anujith Dec 29 '15 at 15:05
  • 1
    Totally Agree with that. I sent this response at work, and as I didn't have time to answer properly, I answered with the link directly, but when I have more time I'll complete it to make it as useful as possible. Thank you very much! :) – Iván González Dec 29 '15 at 15:10