RSS Feed for This PostCurrent Article

Open Source SMS Library for Ruby

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:

   1: class ReverseApp

   2:      def initialize(gsm)

   3:          gsm.receive(method(:incoming))

   4:          @gsm = gsm

   5:      end

   6:  

   7:      def incoming(from, datetime, message)

   8:          @gsm.send(from, message.reverse)

   9:      end

  10:  end

  11:  

  12:  gsm = GsmModem.new

  13:  ReverseApp.new(gsm)

Popularity: 1% [?]


Trackback URL


RSS Feed for This Post1 Comment(s)

  1. Free SMS Ruby | Nov 29, 2010 | Reply

    Here is another code example for sending SMS via ruby:
    https://sites.google.com/site/freesmsuk/sending-free-sms-from-ruby

RSS Feed for This PostPost a Comment