This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
rubygsm /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Thu Dec 18 14:43:33 -0800 2008 | |
| |
README.rdoc | Wed Dec 31 12:15:13 -0800 2008 | |
| |
bin/ | ||
| |
lib/ | ||
| |
rubygsm.gemspec | Thu Mar 05 09:45:28 -0800 2009 | |
| |
spec/ |
README.rdoc
RubyGSM is a Ruby library which uses ruby-serialport to provide a nifty interface to send and receive SMS messages via a GSM modem.
Sample Usage
class ReverseApp
def initialize(gsm)
gsm.receive(method(:incoming))
@gsm = gsm
end
def incoming(from, datetime, message)
@gsm.send(from, message.reverse)
end
end
gsm = GsmModem.new
ReverseApp.new(gsm)
Installing
RubyGSM is distributed via GitHub, which you must add as a gem source before installing:
$ sudo gem sources -a http://gems.github.com
The library depends upon ruby-serialport, which is currently maintained on GitHub by Toholio. This library is included as a Gem dependancy, so to install both:
$ sudo gem install adammck-rubygsm
For Debian/Ubuntu users…
The ruby-serialport library is available in the APT repository as a binary package, which is substatially less hassle to install than the Gem, for those who don’t have a compiler installed (I prefer not to, on production servers). To install the package via apt, and ignore the Gem dependancy:
$ sudo apt-get install libserialport-ruby $ sudo gem install --ignore-dependencies adammck-rubygsm
Devices Tested
- Multitech MTCBA
- Wavecom M1306B








