Permalink
Browse files

fixed example and added new example with just sending message code

  • Loading branch information...
1 parent c563c70 commit ef930d26380563d0c8e917aeabd3b3023bae3778 @JakubOboza JakubOboza committed Oct 5, 2013
Showing with 6 additions and 1 deletion.
  1. +6 −1 README.rdoc
View
7 README.rdoc
@@ -15,9 +15,14 @@ to provide a nifty interface to send and receive SMS messages via a GSM modem.
end
end
- gsm = GsmModem.new("/dev/tty.usbserial")
+ gsm = Gsm::Modem.new("/dev/tty.usbserial")
ReverseApp.new(gsm)
+If you just want to send sms
+
+ gsm = Gsm::Modem.new("/dev/tty.usbserial")
+ msg = Gsm::Outgoing.new(gsm, "+447777777777", "Oh hai")
+ msg.send!
=== Installing
RubyGSM is distributed via GitHub[http://github.com/adammck/rubygsm], which you must

0 comments on commit ef930d2

Please sign in to comment.