0.0
No commit activity in last 3 years
No release in over 3 years
Checks the Huawei E3131 SMS inbox for new messages using the HTTP API.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 2.1, >= 2.1.0
~> 1.5, >= 1.5.2
 Project Readme

Introducing the Huawei_E3131 gem

require 'huawei_e3131'


notifier = ->() {puts 'incoming message'}
e3 = HuaweiE3131.new(callback: notifier)

e3.count
#=> {"LocalUnread"=>"4", "LocalInbox"=>"9", "LocalOutbox"=>"0", "LocalDraft...

e3.status
#=> {"ConnectionStatus"=>"901", "SignalStrength"=>"44", "SignalIcon"=>"3", ...

e3.notifications
#=> {"UnreadMessage"=>"4", "SmsStorageFull"=>"0", "OnlineUpdateStatus"=>"10"}

a = e3.messages.first['Content']
#=> Hey, just testing, 1 2 3.

e3.start
#=> 'checking for new message every 3 seconds ...'

# Receiving a new message
#=> incoming message

Resources

huawei e3131 sms inbox dongle messages restclient api