
Security News
Vite+ Joins the Push to Consolidate JavaScript Tooling
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
Sim800c is a Ruby gem that provides a clean interface to the SIM800C GSM/GPRS module using AT commands over a serial connection. Easily send SMS, manage inbox/outbox, query signal strength, check battery info, and more.
gem 'sim800c'
then run:
bundle install
Or install it directly:
gem install sim800c
require 'sim800c'
port_path = Sim800c.find_port # /dev/ttyUSB0
client = Sim800c::Client.new(port_path, baud: 9600)
# Send SMS
client.send_message("+639123456789", "Hello from SIM800C!")
# Store and then send SMS
client.save_and_send_message("+639123456789", "Stored first, sent later")
# List of all messages
puts client.list_messages.all
# Check signal quality
puts client.signal_quality.info
# Get battery info
puts client.device.battery_info
# Delete message by index
client.delete_message.by_index(1)
# ...and more
messages = client.list_messages
messages.all # => All messages
messages.unread # => Only unread messages
messages.read # => Read messages
messages.unsent # => Unsent messages
messages.sent # => Sent messages
deleter = client.delete_message
deleter.by_index(1) # => delete specific message by index
deleter.all # => delete all messages
deleter.all_read # => delete all read messages
deleter.all_read_and_sent # => delete all read and sent messages
deleter.all_read_sent_and_unsent # => same with .all
signal = client.signal_quality
signal.info # => { rssi: 25, bars: 5, strength: 'Excellent' }
signal.rssi # => 25
device = client.device
device.battery_info
# => {
# charge_status: 0,
# battery_level: 100,
# voltage_mv: 4367,
# charge_status_label: "Not charging"
# }
client.storage_info
# => [{
# storage_type: "read_write",
# memory: "SM",
# used: 2,
# total: 30
# }]
After checking out the repo, run bin/setup
to install dependencies. Then, run rake spec
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and the created tag, and push the .gem
file to rubygems.org.
Bug reports and pull requests are welcome on GitHub at https://github.com/denmarkmeralpis/sim800c. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the Sim800c project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.
FAQs
Unknown package
We found that sim800c demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
Security News
Ruby Central’s incident report on the RubyGems.org access dispute sparks backlash from former maintainers and renewed debate over project governance.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.