Class: Sim800c::Commands::StorageInfo
- Inherits:
-
Object
- Object
- Sim800c::Commands::StorageInfo
- Includes:
- Helpers
- Defined in:
- lib/sim800c/commands/storage_info.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(serial) ⇒ StorageInfo
constructor
A new instance of StorageInfo.
Methods included from Helpers
#at_cmd, #parse_cmgl_response, #read_response, #return_or_raise_error!
Constructor Details
#initialize(serial) ⇒ StorageInfo
Returns a new instance of StorageInfo.
8 9 10 |
# File 'lib/sim800c/commands/storage_info.rb', line 8 def initialize(serial) @serial = serial end |
Instance Method Details
#call ⇒ Object
12 13 14 15 16 |
# File 'lib/sim800c/commands/storage_info.rb', line 12 def call at_cmd('AT+CPMS?') response = @serial.read(1024) parse_cpms_response(response) end |